Assign Student Cohorts

POST /students/{userId}/cohorts

Assign cohorts to a student user

Path parameters

  • userId string(uuid) Required

    User UUID.

application/json

Body Required

  • cohortIds array[string(uuid)] Required

    The list of class IDs.

    At least 1 element.

Responses

  • Cohorts assigned successfully.

  • Invalid request.

  • Invalid authentication credentials

  • Not authorised to access this resource

  • User not found.

POST /students/{userId}/cohorts
curl \
 --request POST 'https://connect.century.tech/api/v1/students/68f06c66-702a-4c26-b8c5-b6dc4f81f25d/cohorts' \
 --header "x-api-key: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"cohortIds":["string"]}'
Request examples
{
  "cohortIds": [
    "string"
  ]
}