DELETE /api/v1/department/{id}

Path parameters

  • id string Required

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • department object Required
      Hide department attributes Show department attributes object
      • id string Required

        The unique idenitier of the department

      • name string Required

        Name of the department

  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
DELETE /api/v1/department/{id}
curl \
 --request DELETE 'http://localhost:3500/api/v1/department/{id}'
Response examples (200)
{
  "message": "string",
  "department": {
    "id": "string",
    "name": "string"
  }
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}