Assign Class Students

POST /classes/{classId}/students

Assign users to a class as students

Path parameters

  • classId string(uuid) Required

    The ID of the class.

application/json

Body Required

  • userIds array[string(uuid)] Required

    User UUID

Responses

  • Students assigned successfully.

  • Invalid request.

  • Invalid authentication credentials

  • Not authorised to access this resource

  • Class not found.

POST /classes/{classId}/students
curl \
 -X POST https://connect.century.tech/api/v1/classes/c81fd38c-03f6-4b68-8720-84a7233e89de/students \
 -H "Content-Type: application/json" \
 -d '{"userIds":["68f06c66-702a-4c26-b8c5-b6dc4f81f25d"]}'
Request examples
{
  "userIds": [
    "68f06c66-702a-4c26-b8c5-b6dc4f81f25d"
  ]
}