Skip to main content
POST
/
v1
/
console
/
case-studies
/
{case_study_id}
/
access-grants
/
revoke
Revoke Case Study Access
curl --request POST \
  --url http://localhost:8000/v1/console/case-studies/{case_study_id}/access-grants/revoke \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "student_ids": [
    "<string>"
  ],
  "reason": "<string>"
}
'
{
  "data": {
    "case_study_id": "<string>",
    "revoked_at": "2023-11-07T05:31:56Z",
    "revoked_by": "<string>",
    "revoked_students": [
      {
        "status": "<string>",
        "student_id": "<string>"
      }
    ]
  },
  "message": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

Enter your JWT access token

Path Parameters

case_study_id
string
required

Body

application/json
student_ids
string[]
required
Required array length: 1 - 500 elements
reason
string | null
Maximum string length: 1000

Response

Successful Response

data
RevokeAccessResponse · object
message
string | null
success
boolean
default:true