v1

latestOpenAPI 3.1.02026-07-24112760.5 KB
Shifts

Get Shift By Id

Get a single shift by ID

get/api/v1/shifts/{id}

Path parameters

idinteger required

The ID of the shift to retrieve

The ID of the shift to retrieve

Query parameters

includestring nullable

Object detail to be included with the shift (e.g. 'activities,teams,roles,people,license_types')

Object detail to be included with the shift (e.g. 'activities,teams,roles,people,license_types')

Response

Successful Response

allow_alternative_timesboolean nullable

Whether person can request changes to the timing of their shift

approvedboolean nullable

Whether timesheet associated with the shift has been approved

archivedboolean nullable

Whether shift has been archived

auto_approve_changesboolean nullable

Whether shift change requests should be approved automatically

created_at_clock_inboolean nullable

Whether shift was created as a result of clocking-in

endstring date-time required

The end time (UTC) of the shift e.g 2023-07-27 06:30:00+00

flex_hoursboolean nullable

Whether the shift has flexible hours

idinteger required

The unique ID of the shift

is_publishing_calendarboolean nullable

Whether the shift is re-syncing to the user's calendar

is_publishing_emailboolean nullable

Whether the shift is re-sending email to the user

is_publishing_slackboolean nullable

Whether the shift is re-publishing on slack

is_publishing_smsboolean nullable

Whether the shift is re-sending sms to the user

needs_publishing_calendarboolean nullable

Whether the shift needs re-syncing to the user's calendar

needs_publishing_emailboolean nullable

Whether the shift needs re-sending email to the user

needs_publishing_slackboolean nullable

Whether the shift needs re-publishing on slack

needs_publishing_smsboolean nullable

Whether the shift needs re-sending sms to the user

notesstring nullable

Any notes about the shift

organisation_idinteger required

The ID of the organisation the shift belongs to

payment_idinteger nullable

The ID of the payment associated with the shift

people_requiredinteger nullable

The number of people required for the shift if unassigned

person_idinteger nullable

The ID of the person assigned to the shift (if any)

recurrence_idinteger nullable

The recurrence ID for the shift

request_idinteger nullable

ID of the request that created the shift

role_idinteger nullable

The ID of the role the shift belongs to

rrulestring nullable

The recurrence rule for the shift

shift_type_idinteger nullable

The ID of the shift type

startstring date-time required

The start time (UTC) of the shift e.g 2023-07-27 06:30:00+00

statusstring nullable

The status of the shift

team_idinteger nullable

The ID of the team the shift belongs to

time_publishedstring date-time nullable

When shift was last published