|
Http Verb |
PUT |
|---|---|
|
Url |
/workforce/crew-shells/r1/crew-shells/{crewShellId}/work-shifts |
|
Permissions required |
Workshifts: Edit (fsm.crewshells.workshifts.edit) |
|
Personally Identifiable Information (PII) |
No |
|
Sensitive Information |
No |
|
Last Modified Version |
r1 |
|
Released since |
|
|
Deprecated since |
|
|
Removed since |
|
|
Tech Tags |
|
Business Logic
This API duplicates the work shifts (and optionally the composition) of an existing Crew Shell from a source interval to a destination interval on the same Crew Shell by calling CrewShellWorkshiftDuplicateEvent.
Path Parameters
|
Field |
Note |
|---|---|
|
crewShellId |
The ID of the Crew Shell (used as both source and destination Crew Shell). |
Header Parameters
Default.
Request Body Parameters
|
Field |
Validations |
Note |
|---|---|---|
|
sourceInterval |
Mandatory ( Note: The time component is ignored (only the date portion is considered). |
Source time interval from which work shifts are copied. |
|
destinationInterval |
Mandatory ( Note: The time component is ignored (only the date portion is considered). |
Destination time interval into which work shifts are duplicated (must be in the future and not overlap with |
|
duplicateCrewShellComposition |
Boolean (optional) |
Default: |
|
automaticCrewShellConfirmation |
Boolean (optional) |
No default. If not provided, the value from the Crew Shell configuration is used. |
|
considerHolidays |
Boolean (optional) |
Default: |
Response documentation
This API returns HTTP 204 No Content with no response payload.
Response error codes
WORKFORCE_016, WORKFORCE_017, WORKFORCE_018, WORKFORCE_019, WORKFORCE_020, WORKFORCE_021, WORKFORCE_022, WORKFORCE_023, WORKFORCE_024, CREWSHELL_0021