Create Class

POST /classes

Create class

application/json

Body Required

  • class object Required

    If an Academic Year ID is not provided it will default to the current Academic Year

    Hide class attributes Show class attributes object

Responses

  • 201 application/json

    Class created successfully.

    Hide response attribute Show response attribute object
    • class object Required
      Hide class attributes Show class attributes object
  • Invalid request.

  • Invalid authentication credentials

  • Not authorised to access this resource

  • Class already exists.

POST /classes
curl \
 -X POST https://connect.century.tech/api/v1/classes \
 -H "Content-Type: application/json" \
 -d '{"class":{"name":"Algebra 101","description":"An introductory course to Algebra","academicYearId":"dccd109a-08ca-4a18-a277-4653ba726316"}}'
Request examples
{
  "class": {
    "name": "Algebra 101",
    "description": "An introductory course to Algebra",
    "academicYearId": "dccd109a-08ca-4a18-a277-4653ba726316"
  }
}
Response examples (201)
{
  "class": {
    "name": "Algebra 101",
    "classId": "c81fd38c-03f6-4b68-8720-84a7233e89de",
    "description": "An introductory course to Algebra",
    "academicYearId": "dccd109a-08ca-4a18-a277-4653ba726316"
  }
}