# Sessions tools

[All tool areas](/docs/tools.md). Each tool acts within your access.

## Sessions

### create_block

Block time at a location: a closure (the whole location), one resource, or one product. Times are local; a date `to` includes that whole day. New sessions are never generated inside a block. A closure takes every session at the location inside its time off sale, and a product block that product's sessions there: guests and staff can't hold or book them, while the bookings and checkouts already there stay (move or cancel those sessions with move_session or cancel_session, which message the guests). A resource block leaves the sessions already holding the resource on sale. The preview names the sessions and their bookings. Returns a preview to confirm.

Changes · Members of an organization · Needs sessions:write

#### Input

- `locationId` — string; required. The location's id, from get_setup
- `kind` — string; required. closure: the whole location is closed. resource: one resource is unavailable. product: one product isn't offered. Allowed: "closure", "resource", "product"
- `resourceId` — string; optional. For a resource block
- `productId` — string; optional. For a product block
- `from` — string; required. Local start: YYYY-MM-DD (from the start of that day) or YYYY-MM-DDTHH:MM pattern: "^\\\\d\{4\}-\\\\d\{2\}-\\\\d\{2\}(T(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d)?$"
- `to` — string; required. Local end: YYYY-MM-DD (through the end of that day) or YYYY-MM-DDTHH:MM pattern: "^\\\\d\{4\}-\\\\d\{2\}-\\\\d\{2\}(T(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d)?$"
- `note` — string; optional.  maxLength: 500

#### Output

- `block` — object; required. 
  - `block.id` — string; required. 
  - `block.locationId` — string; required. 
  - `block.timeZone` — string; required. 
  - `block.kind` — string; required.  Allowed: "closure", "resource", "product"
  - `block.resourceId` — string or null; required. 
  - `block.productId` — string or null; required. 
  - `block.startsAt` — string; required.  format: "date-time"
  - `block.endsAt` — string; required.  format: "date-time"
  - `block.localFrom` — string; required. 
  - `block.localTo` — string; required. 
  - `block.note` — string or null; required. 
- `sessionsInside` — array; required. Scheduled sessions inside the block (for a resource block, those holding the resource then)
  - `sessionsInside[]` — string; optional. 
- `sessionsOffSale` — array; required. The sessions it took off sale, with the bookings still on them; empty for a resource block
  - `sessionsOffSale[]` — object; optional. 
    - `sessionsOffSale[].sessionId` — string; required. 
    - `sessionsOffSale[].localStart` — string; required. 
    - `sessionsOffSale[].bookings` — integer; required. Confirmed bookings, still booked minimum: -9007199254740991; maximum: 9007199254740991
    - `sessionsOffSale[].seatsBooked` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `sessionsOffSale[].seatsHeld` — integer; required. In checkouts not yet paid minimum: -9007199254740991; maximum: 9007199254740991

### create_schedule

Add a schedule for a product at a location: weekly start times (ISO weekdays, 1 is Monday) and/or one-off dates, from startsOn to an optional endsOn. Applying it generates its sessions right away, as far ahead as bookings open; the daily job keeps adding days. The preview says how many sessions it will create. Returns a preview to confirm.

Changes · Members of an organization · Needs sessions:write

#### Input

- `productId` — string; required. The product's id, from list_products
- `locationId` — string; required. The location's id, from get_setup
- `name` — string; required.  minLength: 1; maxLength: 100
- `startsOn` — string; optional. First local date; today at the location by default format: "date"
- `endsOn` — string; optional. Last local date, inclusive; runs until changed if left out format: "date"
- `times` — array; required.  minItems: 1; maxItems: 50
  - `times[]` — one of: object, object; optional. 
    - `times[] — object option 1` — object; optional. 
      - `times[] — object option 1.weekdays` — array; required. ISO weekdays: 1 is Monday, 7 is Sunday minItems: 1
        - `times[] — object option 1.weekdays[]` — integer; optional.  minimum: 1; maximum: 7
      - `times[] — object option 1.startTime` — string; required. A local start time at the location, HH:MM, 24-hour pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
      - `times[] — object option 1.durationMinutes` — integer; optional. Defaults to the product's duration minimum: 1; maximum: 1440
    - `times[] — object option 2` — object; optional. 
      - `times[] — object option 2.onDate` — string; required. A one-off time on this date format: "date"
      - `times[] — object option 2.startTime` — string; required. A local start time at the location, HH:MM, 24-hour pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
      - `times[] — object option 2.durationMinutes` — integer; optional.  minimum: 1; maximum: 1440

#### Output

- `schedule` — object; required. 
  - `schedule.id` — string; required. 
  - `schedule.productId` — string; required. 
  - `schedule.locationId` — string; required. 
  - `schedule.timeZone` — string; required. 
  - `schedule.name` — string; required. 
  - `schedule.startsOn` — string; required. 
  - `schedule.endsOn` — string or null; required. 
  - `schedule.description` — string; required. 
  - `schedule.times` — array; required. 
    - `schedule.times[]` — object; optional. 
      - `schedule.times[].weekdays` — array or null; required. 
        - `schedule.times[].weekdays[]` — integer; optional.  minimum: -9007199254740991; maximum: 9007199254740991
      - `schedule.times[].weekdayNames` — array or null; required. 
        - `schedule.times[].weekdayNames[]` — string; optional. 
      - `schedule.times[].onDate` — string or null; required. 
      - `schedule.times[].startTime` — string; required. 
      - `schedule.times[].durationMinutes` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `schedule.prices` — array; required. The schedule's own prices (set_schedule_price), where its sessions' ticket prices start in place of the location's; shown with pricing:read at its location
    - `schedule.prices[]` — object; optional. 
      - `schedule.prices[].ticketTypeId` — string; required. 
      - `schedule.prices[].amount` — integer; required. Per seat, or a group option's base charge, in minor units of the location's currency
      - `schedule.prices[].perPersonAmount` — integer or null; required. A group option's rate per person above its included seats; null for an individual ticket type, or nobody above them
- `sessionsCreated` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `skipped` — array; required. 
  - `skipped[]` — object; optional. 
    - `skipped[].startsAt` — string; required.  format: "date-time"
    - `skipped[].reason` — string; required.  Allowed: "blocked", "resource\_busy"

### create_session

Create one session of a product at a location outside any schedule: a one-off date, or one only staff can book (settings { "visibility": "staff" }). For a party's own private session, with its price and booking link, use create_private_session. The date and time are local to the location. It holds the product's resources like any session, so a closure, a block, or a resource another session holds is a conflict. Returns a preview to confirm.

Changes · Members of an organization · Needs sessions:write

#### Input

- `productId` — string; required. The product's id, from list_products
- `locationId` — string; required. The location's id, from get_setup
- `date` — string; required. A local date at the location, YYYY-MM-DD format: "date"
- `startTime` — string; required. A local start time at the location, HH:MM, 24-hour pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
- `durationMinutes` — integer; optional. Defaults to the product's duration minimum: 1; maximum: 1440
- `settings` — object; optional. Settings for this session only, e.g. { "visibility": "staff" } for one only staff can book, or { "capacity": 40 }
  - `settings.*` — any value; optional. 

#### Output

- `id` — string; required. 
- `productId` — string; required. 
- `productName` — string; required. 
- `hasMenu` — boolean; required. Whether its product has an active menu where this session is offered (the location's own, else one for all its locations): a dining session, with menu choices and a kitchen sheet. Without one, the session has no kitchen sheet.
- `locationId` — string; required. 
- `timeZone` — string; required. 
- `scheduleId` — string or null; required. Null for a session created outside a schedule
- `status` — string; required.  Allowed: "scheduled", "canceled"
- `startsAt` — string; required.  format: "date-time"
- `endsAt` — string; required.  format: "date-time"
- `localStart` — string; required. 
- `capacity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `seatsHeld` — integer; required. In checkouts not yet paid minimum: -9007199254740991; maximum: 9007199254740991
- `seatsBooked` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `checkedIn` — integer; optional. Guests checked in on its confirmed bookings, for the calendar and the run sheet. Always present minimum: -9007199254740991; maximum: 9007199254740991
- `wholeSession` — boolean; optional. Held or booked whole by a group option (a private booking): no seats left for anyone else, staff included
- `private` — object or null; optional. A private session's terms and booking link; null for a session on sale to everyone
  - `private.name` — string or null; required. Whose it is
  - `private.pricing` — string; required.  Allowed: "flat", "per\_person"
  - `private.amount` — integer or null; required. Minor units, before fees and tax: for the party (flat) or a person (per_person). Null without pricing:read minimum: -9007199254740991; maximum: 9007199254740991
  - `private.partySizeMax` — integer or null; required. The largest party; null: the session's capacity minimum: -9007199254740991; maximum: 9007199254740991
  - `private.token` — string or null; required. The private booking link's token. Share it only with the party: it books the session. Null without pricing:write, which setting its price needs too
- `block` — object or null; optional. The closure or product block it's inside, which takes it off sale (its bookings stay); null when none. Always present in list_sessions
  - `block.id` — string; required. 
  - `block.kind` — string; required.  Allowed: "closure", "product"
  - `block.note` — string or null; required. 
- `settings` — object; required. Overrides set on this session
  - `settings.*` — any value; optional. 

### delete_block

Remove a block or closure, so its time is free again: the sessions it took off sale go back on sale (the preview names them). Sessions aren't created by this; the nightly top-up fills the time from the schedules, or run generate_sessions afterwards. Returns a preview to confirm.

Changes · Members of an organization · Needs sessions:write

#### Input

- `blockId` — string; required. The block's id, from list_blocks

#### Output

- `id` — string; required. 
- `deleted` — boolean; required.  Value: true
- `sessionsBackOnSale` — array; required. The sessions it had taken off sale, on sale again
  - `sessionsBackOnSale[]` — string; optional. 

### generate_sessions

Create the sessions of one schedule, or of every running schedule, as far ahead as bookings open. Sessions that exist are left alone, so it's safe to run any time; times inside a block or with a busy resource are skipped and reported. A daily job does this automatically; use it after changing a booking window or removing a block. The preview counts what would be created. Returns a preview to confirm.

Changes · Members of an organization · Needs sessions:write

#### Input

- `scheduleId` — string; optional. One schedule; every running schedule if left out

#### Output

- `schedules` — array; required. 
  - `schedules[]` — object; optional. 
    - `schedules[].scheduleId` — string; required. 
    - `schedules[].sessionsCreated` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `schedules[].sessionsReinstated` — integer; required. Canceled by a schedule change, and back on at times the schedule has again minimum: -9007199254740991; maximum: 9007199254740991
    - `schedules[].skipped` — array; required. 
      - `schedules[].skipped[]` — object; optional. 
        - `schedules[].skipped[].startsAt` — string; required.  format: "date-time"
        - `schedules[].skipped[].reason` — string; required.  Allowed: "blocked", "resource\_busy"

### get_session

Get one session's staff view, as in list_sessions, with its current per-person ticket prices for a party of one and whether each is the session's own price. Prices include fees, and tax when pricesIncludeTax; null without pricing:read. Group options and unpriced ticket types are omitted.

Reads · Members of an organization · Needs sessions:read

#### Input

- `sessionId` — string; required. The session's id, from list_sessions

#### Output

- `session` — object; required. 
  - `session.id` — string; required. 
  - `session.productId` — string; required. 
  - `session.productName` — string; required. 
  - `session.hasMenu` — boolean; required. Whether its product has an active menu where this session is offered (the location's own, else one for all its locations): a dining session, with menu choices and a kitchen sheet. Without one, the session has no kitchen sheet.
  - `session.locationId` — string; required. 
  - `session.timeZone` — string; required. 
  - `session.scheduleId` — string or null; required. Null for a session created outside a schedule
  - `session.status` — string; required.  Allowed: "scheduled", "canceled"
  - `session.startsAt` — string; required.  format: "date-time"
  - `session.endsAt` — string; required.  format: "date-time"
  - `session.localStart` — string; required. 
  - `session.capacity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `session.seatsHeld` — integer; required. In checkouts not yet paid minimum: -9007199254740991; maximum: 9007199254740991
  - `session.seatsBooked` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `session.checkedIn` — integer; optional. Guests checked in on its confirmed bookings, for the calendar and the run sheet. Always present minimum: -9007199254740991; maximum: 9007199254740991
  - `session.wholeSession` — boolean; optional. Held or booked whole by a group option (a private booking): no seats left for anyone else, staff included
  - `session.private` — object or null; optional. A private session's terms and booking link; null for a session on sale to everyone
    - `session.private.name` — string or null; required. Whose it is
    - `session.private.pricing` — string; required.  Allowed: "flat", "per\_person"
    - `session.private.amount` — integer or null; required. Minor units, before fees and tax: for the party (flat) or a person (per_person). Null without pricing:read minimum: -9007199254740991; maximum: 9007199254740991
    - `session.private.partySizeMax` — integer or null; required. The largest party; null: the session's capacity minimum: -9007199254740991; maximum: 9007199254740991
    - `session.private.token` — string or null; required. The private booking link's token. Share it only with the party: it books the session. Null without pricing:write, which setting its price needs too
  - `session.block` — object or null; optional. The closure or product block it's inside, which takes it off sale (its bookings stay); null when none. Always present in list_sessions
    - `session.block.id` — string; required. 
    - `session.block.kind` — string; required.  Allowed: "closure", "product"
    - `session.block.note` — string or null; required. 
  - `session.settings` — object; required. Overrides set on this session
    - `session.settings.*` — any value; optional. 
  - `session.locationName` — string; required. 
  - `session.prices` — array or null; required. 
    - `session.prices[]` — object; optional. 
      - `session.prices[].ticketTypeId` — string; required. 
      - `session.prices[].name` — string; required. 
      - `session.prices[].amount` — integer; required. Minor units (cents) in the location's currency
      - `session.prices[].currency` — string; required. 
      - `session.prices[].ownPrice` — boolean; required. 

### list_blocks

List blocks and closures (time when a location is closed, a resource is unavailable, or a product isn't offered) that end after `from`, optionally at one location. New sessions are never generated inside them, and a closure or product block takes the sessions already inside it off sale (list_sessions marks them with `block`).

Reads · Members of an organization · Needs sessions:read

#### Input

- `locationId` — string; optional. The location's id, from get_setup
- `from` — string; optional. Blocks ending after this local date's start; today by default format: "date"
- `days` — integer; optional. How many local days from `from` (default 90) minimum: 1; maximum: 366; default: 90

#### Output

- `blocks` — array; required. 
  - `blocks[]` — object; optional. 
    - `blocks[].id` — string; required. 
    - `blocks[].locationId` — string; required. 
    - `blocks[].timeZone` — string; required. 
    - `blocks[].kind` — string; required.  Allowed: "closure", "resource", "product"
    - `blocks[].resourceId` — string or null; required. 
    - `blocks[].productId` — string or null; required. 
    - `blocks[].startsAt` — string; required.  format: "date-time"
    - `blocks[].endsAt` — string; required.  format: "date-time"
    - `blocks[].localFrom` — string; required. 
    - `blocks[].localTo` — string; required. 
    - `blocks[].note` — string or null; required. 

### list_schedules

List schedules (the weekly or one-off start times that generate sessions), optionally for one product or location, with their times in words ("Thursday to Sunday at 19:00") and as data, and their own prices (set_schedule_price) for those who can read prices.

Reads · Members of an organization · Needs sessions:read

#### Input

- `productId` — string; optional. The product's id, from list_products
- `locationId` — string; optional. The location's id, from get_setup

#### Output

- `schedules` — array; required. 
  - `schedules[]` — object; optional. 
    - `schedules[].id` — string; required. 
    - `schedules[].productId` — string; required. 
    - `schedules[].locationId` — string; required. 
    - `schedules[].timeZone` — string; required. 
    - `schedules[].name` — string; required. 
    - `schedules[].startsOn` — string; required. 
    - `schedules[].endsOn` — string or null; required. 
    - `schedules[].description` — string; required. 
    - `schedules[].times` — array; required. 
      - `schedules[].times[]` — object; optional. 
        - `schedules[].times[].weekdays` — array or null; required. 
          - `schedules[].times[].weekdays[]` — integer; optional.  minimum: -9007199254740991; maximum: 9007199254740991
        - `schedules[].times[].weekdayNames` — array or null; required. 
          - `schedules[].times[].weekdayNames[]` — string; optional. 
        - `schedules[].times[].onDate` — string or null; required. 
        - `schedules[].times[].startTime` — string; required. 
        - `schedules[].times[].durationMinutes` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `schedules[].prices` — array; required. The schedule's own prices (set_schedule_price), where its sessions' ticket prices start in place of the location's; shown with pricing:read at its location
      - `schedules[].prices[]` — object; optional. 
        - `schedules[].prices[].ticketTypeId` — string; required. 
        - `schedules[].prices[].amount` — integer; required. Per seat, or a group option's base charge, in minor units of the location's currency
        - `schedules[].prices[].perPersonAmount` — integer or null; required. A group option's rate per person above its included seats; null for an individual ticket type, or nobody above them

### list_sessions

List sessions over a range of local dates (each location's own dates), soonest first: their times, status, schedule, capacity, seats held and booked, guests checked in, and settings set on the session. The staff view: includes unlisted, staff-only, and cancelled sessions, unlike list_availability. Use it for 'how many covers Saturday?' (seats booked and left); get_run_sheet has who is coming.

Reads · Members of an organization · Needs sessions:read

#### Input

- `from` — string; optional. First local date; today by default format: "date"
- `days` — integer; optional. How many local days from `from` (default 7) minimum: 1; maximum: 62; default: 7
- `productId` — string; optional. The product's id, from list_products
- `locationId` — string; optional. The location's id, from get_setup
- `status` — string; optional. Only sessions in this state; both when left out Allowed: "scheduled", "canceled"

#### Output

- `sessions` — array; required. 
  - `sessions[]` — object; optional. 
    - `sessions[].id` — string; required. 
    - `sessions[].productId` — string; required. 
    - `sessions[].productName` — string; required. 
    - `sessions[].hasMenu` — boolean; required. Whether its product has an active menu where this session is offered (the location's own, else one for all its locations): a dining session, with menu choices and a kitchen sheet. Without one, the session has no kitchen sheet.
    - `sessions[].locationId` — string; required. 
    - `sessions[].timeZone` — string; required. 
    - `sessions[].scheduleId` — string or null; required. Null for a session created outside a schedule
    - `sessions[].status` — string; required.  Allowed: "scheduled", "canceled"
    - `sessions[].startsAt` — string; required.  format: "date-time"
    - `sessions[].endsAt` — string; required.  format: "date-time"
    - `sessions[].localStart` — string; required. 
    - `sessions[].capacity` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `sessions[].seatsHeld` — integer; required. In checkouts not yet paid minimum: -9007199254740991; maximum: 9007199254740991
    - `sessions[].seatsBooked` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `sessions[].checkedIn` — integer; optional. Guests checked in on its confirmed bookings, for the calendar and the run sheet. Always present minimum: -9007199254740991; maximum: 9007199254740991
    - `sessions[].wholeSession` — boolean; optional. Held or booked whole by a group option (a private booking): no seats left for anyone else, staff included
    - `sessions[].private` — object or null; optional. A private session's terms and booking link; null for a session on sale to everyone
      - `sessions[].private.name` — string or null; required. Whose it is
      - `sessions[].private.pricing` — string; required.  Allowed: "flat", "per\_person"
      - `sessions[].private.amount` — integer or null; required. Minor units, before fees and tax: for the party (flat) or a person (per_person). Null without pricing:read minimum: -9007199254740991; maximum: 9007199254740991
      - `sessions[].private.partySizeMax` — integer or null; required. The largest party; null: the session's capacity minimum: -9007199254740991; maximum: 9007199254740991
      - `sessions[].private.token` — string or null; required. The private booking link's token. Share it only with the party: it books the session. Null without pricing:write, which setting its price needs too
    - `sessions[].block` — object or null; optional. The closure or product block it's inside, which takes it off sale (its bookings stay); null when none. Always present in list_sessions
      - `sessions[].block.id` — string; required. 
      - `sessions[].block.kind` — string; required.  Allowed: "closure", "product"
      - `sessions[].block.note` — string or null; required. 
    - `sessions[].settings` — object; required. Overrides set on this session
      - `sessions[].settings.*` — any value; optional. 
    - `sessions[].locationName` — string; required. 
- `locations` — array; required. The locations you read sessions at, with only their id, name, and time zone: all the calendar needs to show times where they happen, for a role (a Host, a Venue partner) that can't read the setup. Not the sessions' own, so a quiet week still lists them
  - `locations[]` — object; optional. 
    - `locations[].id` — string; required. 
    - `locations[].name` — string; required. 
    - `locations[].timeZone` — string; required. The IANA time zone sessions there run in

### update_block

Change a block's or closure's times (local; a date `to` includes that whole day) or note. Its kind and target stay; delete it and create another to change those. The preview names the sessions the new times take off sale (with their bookings, which stay) and those going back on sale. Returns a preview to confirm.

Changes · Members of an organization · Needs sessions:write

#### Input

- `blockId` — string; required. The block's id, from list_blocks
- `from` — string; optional. Local start: YYYY-MM-DD (from the start of that day) or YYYY-MM-DDTHH:MM pattern: "^\\\\d\{4\}-\\\\d\{2\}-\\\\d\{2\}(T(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d)?$"
- `to` — string; optional. Local end: YYYY-MM-DD (through the end of that day) or YYYY-MM-DDTHH:MM pattern: "^\\\\d\{4\}-\\\\d\{2\}-\\\\d\{2\}(T(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d)?$"
- `note` — string or null; optional.  maxLength: 500

#### Output

- `block` — object; required. 
  - `block.id` — string; required. 
  - `block.locationId` — string; required. 
  - `block.timeZone` — string; required. 
  - `block.kind` — string; required.  Allowed: "closure", "resource", "product"
  - `block.resourceId` — string or null; required. 
  - `block.productId` — string or null; required. 
  - `block.startsAt` — string; required.  format: "date-time"
  - `block.endsAt` — string; required.  format: "date-time"
  - `block.localFrom` — string; required. 
  - `block.localTo` — string; required. 
  - `block.note` — string or null; required. 
- `sessionsInside` — array; required. 
  - `sessionsInside[]` — string; optional. 
- `sessionsOffSale` — array; required. The sessions off sale at its new times, with the bookings still on them; empty for a resource block
  - `sessionsOffSale[]` — object; optional. 
    - `sessionsOffSale[].sessionId` — string; required. 
    - `sessionsOffSale[].localStart` — string; required. 
    - `sessionsOffSale[].bookings` — integer; required. Confirmed bookings, still booked minimum: -9007199254740991; maximum: 9007199254740991
    - `sessionsOffSale[].seatsBooked` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
    - `sessionsOffSale[].seatsHeld` — integer; required. In checkouts not yet paid minimum: -9007199254740991; maximum: 9007199254740991

### update_schedule

Change a schedule's name, end date, or times (times replace all of them). Its future sessions follow: sessions at times it no longer has are cancelled, sessions whose length changed are retimed, and new times are generated. Sessions with holds are left as they are and named in the preview. Returns a preview to confirm.

Changes · Members of an organization · Needs sessions:write

#### Input

- `scheduleId` — string; required. The schedule's id, from list_schedules
- `name` — string; optional.  minLength: 1; maxLength: 100
- `endsOn` — string or null; optional. Last local date, inclusive; null to run until changed format: "date"
- `times` — array; optional. Replaces all of the schedule's times minItems: 1; maxItems: 50
  - `times[]` — one of: object, object; optional. 
    - `times[] — object option 1` — object; optional. 
      - `times[] — object option 1.weekdays` — array; required. ISO weekdays: 1 is Monday, 7 is Sunday minItems: 1
        - `times[] — object option 1.weekdays[]` — integer; optional.  minimum: 1; maximum: 7
      - `times[] — object option 1.startTime` — string; required. A local start time at the location, HH:MM, 24-hour pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
      - `times[] — object option 1.durationMinutes` — integer; optional. Defaults to the product's duration minimum: 1; maximum: 1440
    - `times[] — object option 2` — object; optional. 
      - `times[] — object option 2.onDate` — string; required. A one-off time on this date format: "date"
      - `times[] — object option 2.startTime` — string; required. A local start time at the location, HH:MM, 24-hour pattern: "^(\[01\]\\\\d\|2\[0-3\]):\[0-5\]\\\\d$"
      - `times[] — object option 2.durationMinutes` — integer; optional.  minimum: 1; maximum: 1440

#### Output

- `schedule` — object; required. 
  - `schedule.id` — string; required. 
  - `schedule.productId` — string; required. 
  - `schedule.locationId` — string; required. 
  - `schedule.timeZone` — string; required. 
  - `schedule.name` — string; required. 
  - `schedule.startsOn` — string; required. 
  - `schedule.endsOn` — string or null; required. 
  - `schedule.description` — string; required. 
  - `schedule.times` — array; required. 
    - `schedule.times[]` — object; optional. 
      - `schedule.times[].weekdays` — array or null; required. 
        - `schedule.times[].weekdays[]` — integer; optional.  minimum: -9007199254740991; maximum: 9007199254740991
      - `schedule.times[].weekdayNames` — array or null; required. 
        - `schedule.times[].weekdayNames[]` — string; optional. 
      - `schedule.times[].onDate` — string or null; required. 
      - `schedule.times[].startTime` — string; required. 
      - `schedule.times[].durationMinutes` — integer or null; required.  minimum: -9007199254740991; maximum: 9007199254740991
  - `schedule.prices` — array; required. The schedule's own prices (set_schedule_price), where its sessions' ticket prices start in place of the location's; shown with pricing:read at its location
    - `schedule.prices[]` — object; optional. 
      - `schedule.prices[].ticketTypeId` — string; required. 
      - `schedule.prices[].amount` — integer; required. Per seat, or a group option's base charge, in minor units of the location's currency
      - `schedule.prices[].perPersonAmount` — integer or null; required. A group option's rate per person above its included seats; null for an individual ticket type, or nobody above them
- `sessionsCanceled` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `sessionsRetimed` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `sessionsCreated` — integer; required.  minimum: -9007199254740991; maximum: 9007199254740991
- `sessionsReinstated` — integer; required. Canceled by an earlier change, and back on at their times minimum: -9007199254740991; maximum: 9007199254740991
- `sessionsKept` — array; required. No longer match the schedule but have holds or bookings, so they stay until nothing holds them; the daily top-up then cancels or retimes them
  - `sessionsKept[]` — object; optional. 
    - `sessionsKept[].id` — string; required. 
    - `sessionsKept[].startsAt` — string; required.  format: "date-time"
- `skipped` — array; required. 
  - `skipped[]` — object; optional. 
    - `skipped[].startsAt` — string; required.  format: "date-time"
    - `skipped[].reason` — string; required.  Allowed: "blocked", "resource\_busy"
