shift_pattern_assignment
A shift_pattern_assignment
represents the assignment of a single shift_pattern to a driver for a given date range.
It determines the base date from which the shift pattern's shifts begin, as well as optionally defining an end date for the pattern.
Name | Type | Description |
---|---|---|
end_date | date | The date of the final day that this shift pattern will be in effect for the driver. This is useful if different shift patterns are required for different periods of time. If not provided, the shift pattern will be in effect indefinitely. |
shift_pattern | shift_pattern or id | Required. The shift pattern to be assigned to the driver for this date range. |
start_date | date | Required. The date of the first day that this shift pattern will take effect for the driver. The shift pattern will begin with its first day's shifts on this date. |
Example
{
"shift_pattern": {
"id": "pattern0",
"shifts": [
[{ "id": "day0", "start_time": "09:00" }],
[{ "id": "day1_shift0", "start_time": "03:00", "end_time": "09:00"}, { "id": "day_shift1", "start_time": "12:00" }],
[]
]
},
"start_date": "2017-01-01"
}
See Also
- The shift_pattern type.
- The driver.shift_patterns field.
- The instantiate endpoint.