Create a roster

Creates a roster and, optionally, its shift pattern. The roster and every pattern row are saved in
one transaction, so a roster is never left half-built.

Validation:

  • rosterName is required, and rosterDays is required as a whole number from 1 to 3660.
  • Every pattern row needs a workShiftId and a shiftOffset between 0 and rosterDays - 1.
  • Every shift must exist, must not be a planner custom shift, and must be inside the caller's Shifts View.
  • When reconcileHours is true, reconcileHoursType must be Rostered or Custom;
    Custom also needs reconcileHoursCustomMinutes.

New rosters are not added to any View. If the caller is View-restricted, savedOutsideView is true
and the roster cannot be read back by that caller until an administrator adds it to their View.

No employees are assigned to a new roster, so no planner shifts are generated by this call.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Roster settings and optional shift pattern.

Request to create a roster, optionally with its shift pattern.

string
required
length between 0 and 500

Roster name. Required.

string | null

Optional roster description.

date-time | null

Date that day offset 0 of the pattern falls on, as yyyy-MM-dd. Any time part is ignored.

int32
required
1 to 3660

Number of days in one cycle of the pattern. Required; a whole number from 1 to 3660 (for example 7 for a weekly roster).

boolean

Set true to enable hours reconciliation for this roster.

string | null

Required when reconcileHours is true: Rostered or Custom.
Ignored when reconcileHours is false.

int32 | null
0 to 2147483647

Custom reconciliation target in minutes (for example 2250 for 37:30).
Required when reconcileHoursType is Custom; ignored otherwise.

shifts
array of objects | null

Optional shift pattern, saved with the roster in the same transaction (up to 1000 rows).
Each offset must be between 0 and rosterDays - 1.

shifts
Headers
string

Your tenant identifier (the subdomain of your Quantum Works URL), passed via the X-Tenant header.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json