latestOpenAPI 3.0.02026-08-10416661.5 MB

e96b3e58b041

Off Hours

Update business hours

REQUIRED SCOPES <code>['off-hours:write']</code><br>Update business hours

post/business-hours

Request body

hourable_idstring

Team ID

hourable_typestring

Type

timezonestring

Timezone

daysstring[]

Days

messagestring

Message

is_activeboolean

Activate

Example request

{
  "hourable_type": "App\\Teams\\Team",
  "days": [
    {
      "day": "sun",
      "closed": true,
      "start": "09:00:00",
      "end": "21:00:00"
    },
    {
      "day": "mon",
      "closed": true,
      "start": "09:00:00",
      "end": "21:00:00"
    },
    {
      "day": "tue",
      "closed": true,
      "start": "09:00:00",
      "end": "21:00:00"
    },
    {
      "day": "wed",
      "closed": true,
      "start": "09:00:00",
      "end": "21:00:00"
    },
    {
      "day": "thu",
      "closed": true,
      "start": "09:00:00",
      "end": "21:00:00"
    },
    {
      "day": "fri",
      "closed": true,
      "start": "09:00:00",
      "end": "21:00:00"
    },
    {
      "day": "sat",
      "closed": true,
      "start": "09:00:00",
      "end": "21:00:00"
    }
  ]
}

Response

OK

object required