Shifts
Planned shifts.
Module: Roster & shifts (roster).
Endpoints
Section titled “Endpoints”GET /api/v1/shifts- List with filters, sorting and pagination (scoperoster:read)GET /api/v1/shifts/{id}- A record by id (scoperoster:read)POST /api/v1/shifts- Create a record (scoperoster:write)PATCH /api/v1/shifts/{id}- Modify the submitted fields (scoperoster:write)DELETE /api/v1/shifts/{id}- Delete or deactivate (scoperoster:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).employee_id(string, uuid; write, required)location_id(string; write)shift_date(string, date; read)start_time(string, time; read)end_time(string, time; read)kind(string; write)source(string; read)note(string; write)created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).resource_id(string; write)template_id(string, uuid; read)date(string, date; write, required)start(string; write, required)end(string; write, required)
Events
Section titled “Events”shifts.createdshifts.updatedshifts.deleted