PUT /v1/deal-goals/celebration-setting
PUT
/v1/deal-goals/celebration-setting
const url = 'https://seu-endereco-da-api/v1/deal-goals/celebration-setting';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"broadcastEnabled":true,"channelId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","groupConversationId":"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/deal-goals/celebration-setting \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "broadcastEnabled": true, "channelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "groupConversationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Permissão que a Chave de acesso precisa: Gerenciar metas (goals:manage).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
broadcastEnabled
required
boolean
channelId
string format: uuid
groupConversationId
string format: uuid
Example generated
{ "broadcastEnabled": true, "channelId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "groupConversationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Seção intitulada “Responses”Media typeapplication/json
object
broadcastEnabled
required
boolean
channelId
required
string
groupConversationId
required
The group conversation the celebration is broadcast into
string
Example generated
{ "broadcastEnabled": true, "channelId": "example", "groupConversationId": "example"}Broadcast without a gateway channel and a group