curl --request PUT \
--url https://api.sandbox.tesouro.com/identity/v1/departments/{departmentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdDateTime": "2023-11-07T05:31:56Z",
"memberCount": 123,
"name": "<string>",
"updatedDateTime": "2023-11-07T05:31:56Z"
}Token types: APP, USER | Required scopes: team:write
curl --request PUT \
--url https://api.sandbox.tesouro.com/identity/v1/departments/{departmentId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdDateTime": "2023-11-07T05:31:56Z",
"memberCount": 123,
"name": "<string>",
"updatedDateTime": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the department to update.
Cancellation token.
Was this page helpful?