API Reference
API Reference

/departments/:id

Deletes a department. Required scope: w_departments. Accessible with all token types.

Results

Calling the DELETE /departments/:id endpoint will delete the given department. If the force param is not present or different than value DELETE then first will make a check to see if there are any affected resources with this department and then will return a 409 Conflict error with the according affected resources if any found. When passed value DELETE then will bypass those affected resources and will proceed to the deletion anyway. In successful deletion the the response will be a 204 No Content.

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!