Skip to main content
POST
Create a shift rotation

Authorizations

Authorization
string
header
required

Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.

Body

application/json

A rotation. On create name and cycleWeeks are required; on update send only what changes, and slots, when sent, replaces the whole pattern.

name
string
required
cycleWeeks
integer
required
Required range: 1 <= x <= 12
clubId
integer | null
weekStartsOn
integer
Required range: 0 <= x <= 6
anchorDate
string<date>

First day of week 1. Defaults to today.

isActive
boolean
slots
object[]

Response

The created rotation

A weekly pattern of shifts, one to twelve weeks long, that coaches are assigned to.

id
integer
clubId
integer | null
name
string
cycleWeeks
integer
weekStartsOn
integer

0 is Sunday, 1 Monday.

anchorDate
string<date>

The first day of week 1 of the cycle.

isActive
boolean
slots
object[]
createdAt
string<date-time>
updatedAt
string<date-time>