Assign Class Teachers

POST /classes/{classId}/teachers

Assign users to a class as teachers

Path parameters

  • classId string(uuid) Required

    The ID of the class.

application/json

Body Required

  • userIds array[string(uuid)] Required

    User UUID

Responses

  • Teachers assigned successfully.

  • Invalid request.

  • Invalid authentication credentials

  • Not authorised to access this resource

  • Class not found.

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