Skip to main content
POST
/
v1
/
console
/
case-studies
/
{case_study_id}
/
access-grants
Grant Case Study Access
curl --request POST \
  --url http://localhost:8000/v1/console/case-studies/{case_study_id}/access-grants \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "access_expires_at": "2023-11-07T05:31:56Z",
  "student_ids": [
    "<string>"
  ],
  "access_start_at": "2023-11-07T05:31:56Z",
  "reason": "<string>"
}
'
{
  "data": {
    "access_expires_at": "2023-11-07T05:31:56Z",
    "access_start_at": "2023-11-07T05:31:56Z",
    "batch_id": "<string>",
    "case_study_id": "<string>",
    "granted_at": "2023-11-07T05:31:56Z",
    "granted_by": "<string>",
    "granted_to": [
      {
        "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
access_expires_at
string<date-time>
required
student_ids
string[]
required
Required array length: 1 - 500 elements
access_start_at
string<date-time> | null
reason
string | null
Maximum string length: 1000

Response

Successful Response

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