ServiceInput

Input Fields

capacity (Int)

Capacity of the service

description (String)

The description on record.

externalCode (String)

User defined identifier.

metadata (JSON)

The metadata of the record.

name (String)

The name of the record.

openings (JSON)
The openings of the record. The structure is as follows:
  {
  "monday": [{"open": "09:00", "close": "13:00"}, ...],
  "tuesday": [{"open": "09:00", "close": "13:00"}, ...],
  "wednesday": [{"open": "09:00", "close": "13:00"}, ...],
  "thursday": [{"open": "09:00", "close": "13:00"}, ...],
  "friday": [{"open": "09:00", "close": "13:00"}, ...],
  "saturday": [{"open": "09:00", "close": "13:00"}, ...],
  "sunday": [{"open": "09:00", "close": "13:00"}, ...],
  "holidays": ["2022-12-13", ...],
  "special_days": [{"date": "2021-12-13", "openings": [{"open": "09:00", "close": "13:00"}, ...]}, ...]
  }
  Each day contains an array of objects with "open" and "close" times in HH:MM format.
  "holidays" is an array of dates in YYYY-MM-DD format.
  "special_days" is an array of objects with a "date" and an array of "openings".
  "special_days" can be used to define special openings for specific dates

and can be used to override the default openings.