PUT /v1/channels/{id}/routing
PUT
/v1/channels/{id}/routing
const url = 'https://seu-endereco-da-api/v1/channels/example/routing';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"defaultDepartmentId":"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 PUT \ --url https://seu-endereco-da-api/v1/channels/example/routing \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "defaultDepartmentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Permissão que a Chave de acesso precisa: Gerenciar canais (channels:manage).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
defaultDepartmentId
string format: uuid
Example generated
{ "defaultDepartmentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}