Skip to main content
PUT
/
api
/
v1
/
school
/
classes
/
{id}
Update school class
curl --request PUT \
  --url https://api.example.com/api/v1/school/classes/{id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "form": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "subjects": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "is_deleted": true
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

A UUID string identifying this school class.

Body

Auto-populate created_by from request.user when available.

name
string
required
Required string length: 1 - 255
form
string<uuid> | null
required
subjects
string<uuid>[]
is_deleted
boolean

Response

{key}
any