API Reference

/departments/:id

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

Log in to see full request history
timestatususer agent
Retrieving recent requests…
LoadingLoading…

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.

Path Params
string
required

The account subdomain

string
required

The department id that you want to delete

Query Params
string

If 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 error with the affected resources, if any were found. When passed value DELETE then will bypass those affected resources and will proceed to the deletion anyway

Responses

Language
Credentials
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json