Skip to main content
POST
Create a shift template

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 shift template. On create name, startTime and endTime are required; on update send only what changes, and breaks, when sent, replaces the whole set.

name
string
required
startTime
string
required

HH:mm, 24-hour

Example:

"06:00"

endTime
string
required

HH:mm, 24-hour, after startTime

Example:

"14:00"

clubId
integer | null
color
string
displayOrder
integer
isActive
boolean
breaks
object[]

Each inside the shift window.

Response

The created template

A named shift a roster is built from, on the wall clock of the club it is worked at.

id
integer
clubId
integer | null

Null means every club of the organization.

name
string
startTime
string
Example:

"06:00"

endTime
string
Example:

"14:00"

color
string
displayOrder
integer
isActive
boolean
breaks
object[]
createdAt
string<date-time>
updatedAt
string<date-time>