PUT /v1/attendance-settings
const url = 'https://seu-endereco-da-api/v1/attendance-settings';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"messageDeletion":"none","requireSignature":true,"signatureChannelIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"clientDeletedMessage":"hide","groupMode":"ticket","mergeConversations":true,"conversationJoin":true}'};
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/attendance-settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "messageDeletion": "none", "requireSignature": true, "signatureChannelIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "clientDeletedMessage": "hide", "groupMode": "ticket", "mergeConversations": true, "conversationJoin": true }'Permissão que a Chave de acesso precisa: Gerenciar regras de atendimento (attendance:manage).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”object
Responses
Seção intitulada “Responses”object
How far the operator may go when deleting a message: not at all, hide from the system, or also revoke on WhatsApp
When true the server signs what the operator types, and the operator cannot turn it off
Channels where the signature is mandatory when requireSignature is true; empty means every channel, and on the others each operator decides
What the operator gets when the contact deletes a message on WhatsApp: nothing at all, or the content behind a reveal
Whether a whatsapp group is an attendance with owner, state and metrics, or a list the team just reads and answers
When true a contact keeps one conversation whatever channel it talks through; when false each channel opens its own conversation and ticket for the contact, and conversations that already exist are left as they are
When true someone whose role allows it enters a conversation of another agent without becoming its owner; off, every door keeps refusing with conversation_of_another_agent
How many group conversations left the attendance queue because this call turned the switch on
Example
{ "messageDeletion": "none", "clientDeletedMessage": "hide", "groupMode": "ticket"}