sessions

Move one time nobody has booked (starts_at and ends_at together), or change who teaches it (teacher); its calendar entry's other times stay. A booked one can't move, only be cancelled, but its teacher can change.

patch/sessions/{id}

Request

  • Base URL: https://daybag.io/api/v1
  • URL: https://daybag.io/api/v1/sessions/{id}
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Request body

starts_atstring

ISO 8601 instant, e.g. 2026-10-03T15:00:00Z

ends_atstring

ISO 8601 instant, e.g. 2026-10-03T15:00:00Z

teacherstring uuid nullable

Who teaches it: a member's user id (Settings → Team); null for nobody. Anyone not on your team answers 400 not_a_member

Response

Success

idstring required
org_idstring required
offering_idstring required
starts_atstring required

ISO 8601 timestamp (UTC)

ends_atstring required

ISO 8601 timestamp (UTC)

capacityinteger nullable required

Seats for this session; null means the class's capacity

status'scheduled' | 'cancelled' required
series_idstring nullable

The calendar entry it's a time of; null when scheduled on its own

occurs_onstring nullable

Its entry's local date for it

created_atstring required

ISO 8601 timestamp (UTC)

Changes

No recorded changes to this operation across all 1 revision of this API.