Off Hours

Update business hours

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

post/business-hours

Request

  • Base URL
    https://api.salesmessage.com/pub/v2.3
  • URL
    https://api.salesmessage.com/pub/v2.3/business-hours
  • Auth
    HTTP bearer

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

Changes

No recorded changes to this operation across all 3 revisions of this API.