PUT /v1/csat/settings
const url = 'https://seu-endereco-da-api/v1/csat/settings';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"agentMinResponses":1,"recoveryEnabled":true,"recoveryMaxRating":1,"recoveryOwnerMode":"department_supervisor","recoveryOwnerUserId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","recoverySlaHours":1,"recoveryNotifyOnBreach":true,"recoveryIncludeNoReply":true,"insightEnabled":true,"insightAuto":true,"insightMaxRating":1,"insightMonthlyCapCents":1,"recoveryOutcomes":[{"label":"example","recovered":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/csat/settings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "agentMinResponses": 1, "recoveryEnabled": true, "recoveryMaxRating": 1, "recoveryOwnerMode": "department_supervisor", "recoveryOwnerUserId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "recoverySlaHours": 1, "recoveryNotifyOnBreach": true, "recoveryIncludeNoReply": true, "insightEnabled": true, "insightAuto": true, "insightMaxRating": 1, "insightMonthlyCapCents": 1, "recoveryOutcomes": [ { "label": "example", "recovered": true } ] }'Permissão que a Chave de acesso precisa: Gerenciar pesquisa de satisfação (csat:manage).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”object
object
Responses
Seção intitulada “Responses”object
How many answers an agent needs before the screen treats the score as a score
Whether a bad rating opens a recovery case
Highest rating that still opens a recovery case
Hours the owner has before the case is late
Whether a case past its deadline warns the supervisor once
Whether a customer who ignored the survey also becomes a recovery case
Whether the AI may read one attendance and explain its rating
Whether that reading happens on its own when a rating arrives
The worst rating whose conversation the AI reads
How much this analysis may spend in a month, in cents; zero means no cap of its own
How much this analysis already spent this month, in cents
object
Whether closing a case with this outcome counts as a recovered customer
Example
{ "recoveryOwnerMode": "department_supervisor"}