PATCH /v1/channels/{id}/gateway-settings
PATCH
/v1/channels/{id}/gateway-settings
const url = 'https://seu-endereco-da-api/v1/channels/example/gateway-settings';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"listenGroups":true,"receiveCalls":true,"callRejectMessage":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://seu-endereco-da-api/v1/channels/example/gateway-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "listenGroups": true, "receiveCalls": true, "callRejectMessage": "example" }'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
listenGroups
boolean
receiveCalls
boolean
callRejectMessage
string
Example generated
{ "listenGroups": true, "receiveCalls": true, "callRejectMessage": "example"}