Skip to main content
POST
/
api
/
v1
/
school
/
departments
Create department
curl --request POST \
  --url https://api.example.com/api/v1/school/departments/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "hod": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "subject": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "teachers": [
    "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.

Body

Auto-populate created_by from request.user when available.

name
string
required
Required string length: 1 - 255
hod
string<uuid>
required
subject
string<uuid>
required
teachers
string<uuid>[]
required
is_deleted
boolean

Response

{key}
any