TratowAPI
API aberta · Agenda

Alterar configurações da agenda

patch/api/open/v1/agenda/settings

Em resumo

  • PATCH /api/open/v1/agenda/settings
  • Precisa de chave read_write.
  • Sucesso: 200.
  • Authorizationstringheaderobrigatório

    Chave 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/json
  • slotMinutesinteger

    Intervalo entre os horários da agenda, em minutos.

    -9007199254740991 a 9007199254740991

  • initialStatusenum<string>

    Valores aceitos:pendingconfirmed

  • onlyBusinessHoursboolean
  • patEnabledboolean
  • selfServiceEnabledboolean
  • reminderFirstMinutesintegerpode ser nulo

    5 a 10080

Mostrar mais 3 campos opcionais
  • reminderSecondMinutesintegerpode ser nulo

    5 a 10080

  • reminderThirdMinutesintegerpode ser nulo

    5 a 10080

  • checkoutWholeDayboolean

Resposta 200

application/json
  • slotMinutesintegerobrigatório

    Intervalo entre os horários da agenda, em minutos.

    -9007199254740991 a 9007199254740991

  • initialStatusenum<string>obrigatório

    Valores aceitos:pendingconfirmed

  • onlyBusinessHoursbooleanobrigatório
  • patEnabledbooleanobrigatóriopadrão: false
  • selfServiceEnabledbooleanobrigatóriopadrão: false
  • reminderFirstMinutesintegerpode ser nuloobrigatório

    5 a 10080

  • reminderSecondMinutesintegerpode ser nuloobrigatório

    5 a 10080

  • reminderThirdMinutesintegerpode ser nuloobrigatório

    5 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  }'
Resposta
{  "slotMinutes": 1,  "initialStatus": "pending",  "onlyBusinessHours": true,  "patEnabled": false,  "selfServiceEnabled": false,  "reminderFirstMinutes": 5,  "reminderSecondMinutes": 5,  "reminderThirdMinutes": 5,  "checkoutWholeDay": false}

Os valores são ilustrativos.