FruxonDocs
ApiEscalations

Creates a set of working hours.

Times are `HH:mm` wall-clock times in the given IANA time zone. An end earlier than its start runs past midnight into the next day, and `24:00` is accepted as an end. A weekday that is left out is closed. A dated exception replaces that date's regular hours; an exception with no time ranges closes the day.

POST
/v1/tenants/{tenant}/workingHoursSchedules
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

tenant*string

The tenant identifier

The working hours to create.

name?string

Display name ("Israel support").

timeZone?string

IANA zone id, e.g. Asia/Jerusalem. Required; there is no UTC default.

weekly?

The regular week. A weekday that is left out is closed.

overrides?

Dated exceptions to the regular week — holidays, short days.

closingSoonMinutes?integer|null

Minutes before a close that an escalation is treated like an after-hours one. Zero, the default, turns it off.

Formatint32
[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/workingHoursSchedules" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "timeZone": "string",
  "weekly": [
    {
      "day": "MONDAY",
      "intervals": []
    }
  ],
  "overrides": [
    {
      "date": "string",
      "label": "string",
      "intervals": []
    }
  ],
  "closingSoonMinutes": 0,
  "status": {
    "isOpen": false,
    "nextChangeAt": 0
  },
  "createdAt": 0,
  "modifiedAt": 0
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty