Pular para o conteúdo

PUT /v1/attendance-settings

PUT
/v1/attendance-settings
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).

Media typeapplication/json
object
messageDeletion
string
Allowed values: none me everyone
requireSignature
boolean
signatureChannelIds
Array<string>
clientDeletedMessage
string
Allowed values: hide reveal
groupMode
string
Allowed values: ticket group
mergeConversations
boolean
conversationJoin
boolean
Media typeapplication/json
object
messageDeletion
required

How far the operator may go when deleting a message: not at all, hide from the system, or also revoke on WhatsApp

string
Allowed values: none me everyone
requireSignature
required

When true the server signs what the operator types, and the operator cannot turn it off

boolean
signatureChannelIds
required

Channels where the signature is mandatory when requireSignature is true; empty means every channel, and on the others each operator decides

Array<string>
clientDeletedMessage
required

What the operator gets when the contact deletes a message on WhatsApp: nothing at all, or the content behind a reveal

string
Allowed values: hide reveal
groupMode
required

Whether a whatsapp group is an attendance with owner, state and metrics, or a list the team just reads and answers

string
Allowed values: ticket group
mergeConversations
required

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

boolean
conversationJoin
required

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

boolean
movedGroups
required

How many group conversations left the attendance queue because this call turned the switch on

number

Example

{
"messageDeletion": "none",
"clientDeletedMessage": "hide",
"groupMode": "ticket"
}