Get Shifts
https://app.untetherlabs.com/api/v1/shiftsGet shifts within a given time range.
Query parameters#
provideruuidteamuuidstartDatestringUsed to inclusively filter shifts whose startDate is later than the provided start time, in yyyy-MM-dd format. Defaults to current date - 1 month.
endDatestringUsed to exclusively filter shifts whose endDate is earlier than the provided end time, in yyyy-MM-dd format. Defaults to current date + 1 month.
includeOpenboolean· default falseincludeDisplayNamesboolean· default falsesortstringAvailable fields: startDate
See Query Parameters for more information on sorting.
pageSizenumber· default 20 · min 1 · max 200cursorstringResponse 200#
itemsShift[]Show Shift properties
createdAtstringversionnumberVersion number for optimistic locking. Include this when updating to detect conflicts.
provideruuid | nullThe provider of the shift. If null, the shift is an open shift.
providerNamestring | nullThe display name of the provider. Only populated when the request opts in via includeDisplayNames.
startDatestringendDatestringsegmentsShiftSegment[]The segments that make up a shift, ordered by startDate.
Show ShiftSegment properties
importedIdstring | nullIf a segment was created in an external system, this is the ID of the segment in that system.
createdAtstringroleuuid | nullThe role of the shift. Can be null if the shift is pulled from an external system.
roleNamestring | nullThe display name of the segment's role. Only populated when the request opts in via includeDisplayNames.
roleColorstring | nullThe hex color of the segment's role. Only populated when the request opts in via includeDisplayNames.
roleImportedIdstringDEPRECATED The ID of the role in the external system. Once all roles are migrated to the system, this field will be removed.
additionalInfoanyDEPRECATED Additional information about the segment.
isBreakbooleanUsed to denote whether or not the provider will be on break during this segment.
isOnCallbooleantypeenumThe type of the segment.
- working
- Regular working segment
- paid_break
- Paid break segment
- unpaid_break
- Unpaid break segment
- on_call
- On-call segment
startDatestringThe timestamp of when the shift starts.
endDatestringThe timestamp of when the shift ends.
skillRequirementNullableSkillRequirementOption 1 — SkillRequirementCondition
typeenum- equal
skillstring· min length 1valuestringOption 2 — SkillRequirementGroup
typeenum- and
- or
entriesone of[]· min items 1Option 1 — SkillRequirementCondition
typeenumskillstring· min length 1valuestringOption 2 — SkillRequirementNestedGroup
typeenumentriesSkillRequirementCondition[]· min items 1labelsstring[]The label IDs associated with this shift segment.
payCodesShiftPayCode[]· max items 1payCodeIduuidThe pay code ID associated with this shift.
valuenumberOnly present for variable pay codes. The value of the pay code for this shift.
teamuuid | nullThe team that the shift is associated with.
notestring | nullA note about the shift. Visible to providers.
isCalloutbooleanWhether the shift is marked as a callout. Callout shifts are hidden from reads unless an endpoint explicitly includes them.
workRuleOverrideuuid | nullcursorstringErrors#
You do not have permission to perform this action.
Show extension members
actionstringresourcestringreasonstring