Assign Student Cohorts

POST /students/{userId}/cohorts

Assign cohorts to a student user

Path parameters

  • userId string(uuid) Required

    The ID of the user to update.

application/json

Body Required

Responses

  • Cohorts assigned successfully.

  • Invalid request.

  • Invalid authentication credentials

  • Not authorised to access this resource

  • User not found.

POST /students/{userId}/cohorts
curl \
 -X POST https://connect.century.tech/api/v1/students/68f06c66-702a-4c26-b8c5-b6dc4f81f25d/cohorts \
 -H "Content-Type: application/json" \
 -d '{"cohortIds":["c334f818-0281-4f47-855a-3a3d0e356cfd"]}'
Request examples
{
  "cohortIds": [
    "c334f818-0281-4f47-855a-3a3d0e356cfd"
  ]
}