Docs

Get Event State Records

GET /crew/state-records

GET/crew/state-records

Lists the organization-rule states on one event's hours between from and to, one entry per crew member working it, with only that event's blocks and the states landing on them. Each state's explanation counts the hours behind it across all the person's work, so a state built mostly elsewhere reads that way. Read-only: it changes nothing about the event's cost or charge. eventId is the Event API's event id. Needs Crew.View at the organization.

Query Parameters

FieldTypeRequiredDescription
eventIduuidOptional
fromdate-timeOptional
todate-timeOptional

Response

Type: GetCrewStateRecordsResponse[]

GetCrewStateRecordsResponse

FieldTypeDescription
crewIduuid
fromdate-time
todate-time
recordsGetCrewStateRecordsResponseRecordInfo[]| null
blocksGetCrewStateRecordsResponseBlockInfo[]| null

GetCrewStateRecordsResponseRecordInfo

FieldTypeDescription
stateIduuid
stateGetCrewStateRecordsResponseStateInfo
ruleIduuid
ruleNamestring| null
startDateTimedate-time
endDateTimedate-time| null
isActualboolean
explanationGetCrewStateRecordsResponseExplanationInfo

GetCrewStateRecordsResponseBlockInfo

FieldTypeDescription
iduuid
typeIduuid| null
startDateTimedate-time
endDateTimedate-time
isActualboolean
sourceGetCrewScheduleBlocksResponseSourceInfo
statesGetCrewStateRecordsResponseSegmentInfo[]| null

GetCrewStateRecordsResponseStateInfo

FieldTypeDescription
namestring| null
colorstring| null
iconstring| null
sortOrderinteger

GetCrewStateRecordsResponseExplanationInfo

FieldTypeDescription
thresholdGetCrewStateRecordsResponseThresholdInfo
countedFromdate-time| null
sourcesGetCrewStateRecordsResponseSourceHoursInfo[]| null

GetCrewScheduleBlocksResponseSourceInfo

FieldTypeDescription
resourceReservationIduuid| null
eventReservationIduuid| null
eventIduuid| null
eventNamestring| null
isCandidateboolean

GetCrewStateRecordsResponseSegmentInfo

FieldTypeDescription
stateIduuid
ruleIduuid
startDateTimedate-time
endDateTimedate-time