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
| Field | Type | Required | Description |
|---|
| eventId | uuid | Optional | |
| from | date-time | Optional | |
| to | date-time | Optional | |
Response
Type: GetCrewStateRecordsResponse[]
GetCrewStateRecordsResponse
| Field | Type | Description |
|---|
| crewId | uuid | |
| from | date-time | |
| to | date-time | |
| records | GetCrewStateRecordsResponseRecordInfo[]| null | |
| blocks | GetCrewStateRecordsResponseBlockInfo[]| null | |
GetCrewStateRecordsResponseRecordInfo
| Field | Type | Description |
|---|
| stateId | uuid | |
| state | GetCrewStateRecordsResponseStateInfo | |
| ruleId | uuid | |
| ruleName | string| null | |
| startDateTime | date-time | |
| endDateTime | date-time| null | |
| isActual | boolean | |
| explanation | GetCrewStateRecordsResponseExplanationInfo | |
GetCrewStateRecordsResponseBlockInfo
| Field | Type | Description |
|---|
| id | uuid | |
| typeId | uuid| null | |
| startDateTime | date-time | |
| endDateTime | date-time | |
| isActual | boolean | |
| source | GetCrewScheduleBlocksResponseSourceInfo | |
| states | GetCrewStateRecordsResponseSegmentInfo[]| null | |
GetCrewStateRecordsResponseStateInfo
| Field | Type | Description |
|---|
| name | string| null | |
| color | string| null | |
| icon | string| null | |
| sortOrder | integer | |
GetCrewStateRecordsResponseExplanationInfo
| Field | Type | Description |
|---|
| threshold | GetCrewStateRecordsResponseThresholdInfo | |
| countedFrom | date-time| null | |
| sources | GetCrewStateRecordsResponseSourceHoursInfo[]| null | |
GetCrewScheduleBlocksResponseSourceInfo
| Field | Type | Description |
|---|
| resourceReservationId | uuid| null | |
| eventReservationId | uuid| null | |
| eventId | uuid| null | |
| eventName | string| null | |
| isCandidate | boolean | |
GetCrewStateRecordsResponseSegmentInfo
| Field | Type | Description |
|---|
| stateId | uuid | |
| ruleId | uuid | |
| startDateTime | date-time | |
| endDateTime | date-time | |