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>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Application (M2M) OAuth2 access token (client credentials).

Path Parameters

departmentId
string<uuid>
required

The ID of the department to deactivate.

Response

Department deactivated successfully.