NextGen APIs

PUT /workforce/crew-shells/r1/crew-shells/{crewShellId}/work-shifts

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

2027 W1 (FSM 25.0)

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 (ZonedDateTimeRange: from, to)

Note: The time component is ignored (only the date portion is considered).

Source time interval from which work shifts are copied.

destinationInterval

Mandatory (ZonedDateTimeRange: from, to)

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 sourceInterval).

duplicateCrewShellComposition

Boolean (optional)

Default: true. Indicates whether the Crew Shell composition should also be duplicated.

automaticCrewShellConfirmation

Boolean (optional)

No default. If not provided, the value from the Crew Shell configuration is used.

considerHolidays

Boolean (optional)

Default: false. Indicates whether holidays should be considered during duplication.

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