PATCH
/api/v1/department/{id}
curl \
--request PATCH 'https://api.echoplain.social/api/v1/department/{id}' \
--header "Content-Type: application/json" \
--data '{"name":"Department of computer science and IT","instituteId":"efc-ded-ciejd-ed-e","lecturerInchargeID":"string"}'
Request examples
{
"name": "Department of computer science and IT",
"instituteId": "efc-ded-ciejd-ed-e",
"lecturerInchargeID": "string"
}
Response examples (200)
{
"message": "string",
"department": {
"createdAt": "2025-05-04T09:42:00Z",
"updatedAt": "2025-05-04T09:42:00Z",
"id": "string",
"name": "string",
"instituteid": "string"
}
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}