Assign Student Classes

POST /students/{userId}/classes

Assign classes to a student user

Path parameters

  • userId string(uuid) Required

    The ID of the user to update.

application/json

Body Required

  • classIds array[string(uuid)] Required

    Class UUID

Responses

  • Classes assigned successfully.

  • Invalid request.

  • Invalid authentication credentials

  • Not authorised to access this resource

  • User not found.

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