POST
/api/v1/department/new
curl \
--request POST 'https://api.echoplain.social/api/v1/department/new' \
--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": {
"id": "string",
"name": "string"
}
}
Response examples (400)
{
"message": "string",
"error": "string",
"statusCode": 42.0
}