API aberta · Agenda
Alterar configurações da agenda
patch
/api/open/v1/agenda/settingsEm resumo
PATCH /api/open/v1/agenda/settings- Precisa de chave
read_write. - Sucesso:
200.
AuthorizationstringheaderobrigatórioChave de API no formato Bearer ttw_live_<prefixo>_<segredo>, criada em Integrações → Chaves de API. Este endpoint precisa de chave read_write.
Corpo
application/jsonslotMinutesintegerIntervalo entre os horários da agenda, em minutos.
-9007199254740991 a 9007199254740991
initialStatusenum<string>Valores aceitos:
pendingconfirmedonlyBusinessHoursbooleanpatEnabledbooleanselfServiceEnabledbooleanreminderFirstMinutesintegerpode ser nulo5 a 10080
Mostrar mais 3 campos opcionaisEsconder campos opcionais
reminderSecondMinutesintegerpode ser nulo5 a 10080
reminderThirdMinutesintegerpode ser nulo5 a 10080
checkoutWholeDayboolean
Resposta 200
application/jsonslotMinutesintegerobrigatórioIntervalo entre os horários da agenda, em minutos.
-9007199254740991 a 9007199254740991
initialStatusenum<string>obrigatórioValores aceitos:
pendingconfirmedonlyBusinessHoursbooleanobrigatóriopatEnabledbooleanobrigatóriopadrão: falseselfServiceEnabledbooleanobrigatóriopadrão: falsereminderFirstMinutesintegerpode ser nuloobrigatório5 a 10080
reminderSecondMinutesintegerpode ser nuloobrigatório5 a 10080
reminderThirdMinutesintegerpode ser nuloobrigatório5 a 10080
checkoutWholeDaybooleanobrigatóriopadrão: false
curl --request PATCH \
--url 'https://qa-tratow.ips.app.br/api/open/v1/agenda/settings' \
--header 'Authorization: Bearer <chave>' \
--header 'Content-Type: application/json' \
--data '{
"slotMinutes": 1,
"initialStatus": "pending",
"onlyBusinessHours": true,
"patEnabled": true,
"selfServiceEnabled": true,
"reminderFirstMinutes": 5,
"reminderSecondMinutes": 5,
"reminderThirdMinutes": 5,
"checkoutWholeDay": true
}'{
"slotMinutes": 1,
"initialStatus": "pending",
"onlyBusinessHours": true,
"patEnabled": false,
"selfServiceEnabled": false,
"reminderFirstMinutes": 5,
"reminderSecondMinutes": 5,
"reminderThirdMinutes": 5,
"checkoutWholeDay": false
}Os valores são ilustrativos.
