POST /v1/departments/transfer-blocks
POST
/v1/departments/transfer-blocks
const url = 'https://seu-endereco-da-api/v1/departments/transfer-blocks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"fromDepartmentId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","toDepartmentId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”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"}Responses
Seção intitulada “Responses”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