Skip to main content
DELETE
/
identity
/
v1
/
departments
/
{departmentId}
Deactivates a department in the caller's organization.
curl --request DELETE \
  --url https://api.sandbox.tesouro.com/identity/v1/departments/{departmentId} \
  --header 'Authorization: Bearer <token>'
{
  "detail": "<string>",
  "instance": "<string>",
  "status": 123,
  "title": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

departmentId
string<uuid>
required

The ID of the department to deactivate.

Response

Department deactivated successfully.