cURL
curl --request PATCH \ --url https://api.example.com/api/v1/school/departments/{id}/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "hod": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "subject": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "is_deleted": true, "teachers": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ] } '
{ "name": "<string>", "hod": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "subject": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "teachers": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ], "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "is_deleted": true, "updated_at": "2023-11-07T05:31:56Z", "created_at": "2023-11-07T05:31:56Z" }
Requires authentication.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
A UUID string identifying this department.
Auto-populate created_by from request.user when available.
1 - 255
255