PUT /v1/sla
PUT
/v1/sla
const url = 'https://seu-endereco-da-api/v1/sla';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"departmentId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","firstResponseSec":1,"resolutionSec":1,"businessHoursConfigId":"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/sla \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "departmentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "firstResponseSec": 1, "resolutionSec": 1, "businessHoursConfigId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Permissão que a Chave de acesso precisa: Gerenciar SLA (sla:manage).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
departmentId
string format: uuid
firstResponseSec
required
number
resolutionSec
required
number
businessHoursConfigId
string format: uuid
Example generated
{ "departmentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "firstResponseSec": 1, "resolutionSec": 1, "businessHoursConfigId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Seção intitulada “Responses”Media typeapplication/json
object
id
required
string
departmentId
required
string
firstResponseSec
required
number
resolutionSec
required
number
businessHoursConfigId
required
string
businessHoursName
required
string
Example generated
{ "id": "example", "departmentId": "example", "firstResponseSec": 1, "resolutionSec": 1, "businessHoursConfigId": "example", "businessHoursName": "example"}Department or business hours config not found