Booking - Anchors

Create booking anchor

Changed on

Anchor a span of time in a room so only the slots immediately before and after it stay bookable that day. Takes the same fields as the admin form: a room and a start and end time.

The anchor's date and duration are worked out from start_at and end_at, and its source is always api. Times without a UTC offset are read in the studio's timezone.

Requires the bookings.write scope when using OAuth tokens.

post/booking_anchors

Request

  • Base URL
    https://api.jammed.app/api/v2
  • Auth
    none declared. Required headers: Authorization

Headers

Authorizationstring required

Request body

Example request

{
  "booking_anchor": {
    "start_at": "2026-11-02T10:00:00",
    "end_at": "2026-11-02T13:00:00"
  }
}

Response

Booking anchor created

idinteger
room_idinteger
datestring date

The day the anchor applies to, in the studio's timezone

start_atinteger

Unix timestamp

end_atinteger

Unix timestamp

start_timestring

Format: YYYY-MM-DD HH:MM, in the studio's timezone

end_timestring

Format: YYYY-MM-DD HH:MM, in the studio's timezone

durationinteger nullable

Length in seconds that a slot has to match when sticky bookings match durations

source'auto' | 'manual' | 'api'

auto anchors come from a booking, manual ones were added in the admin, and api ones through this API

booking_codestring nullable

Code of the booking an auto anchor was created from

Changes