Pular para o conteúdo

POST /v1/departments/transfer-blocks

POST
/v1/departments/transfer-blocks
curl --request POST \
--url https://seu-endereco-da-api/v1/departments/transfer-blocks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "fromDepartmentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "toDepartmentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Permissão que a Chave de acesso precisa: Gerenciar departamentos (departments:manage).

Media typeapplication/json
object
fromDepartmentId
required
string format: uuid
toDepartmentId
required
string format: uuid

Example generated

{
"fromDepartmentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"toDepartmentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
Media typeapplication/json
object
id
required
string
fromDepartmentId
required

Nobody in this department can transfer to the one below

string
toDepartmentId
required
string
createdAt
required
string format: date-time

Example generated

{
"id": "example",
"fromDepartmentId": "example",
"toDepartmentId": "example",
"createdAt": "2026-04-15T12:00:00Z"
}

This transfer is already blocked