NextGen APIs

POST /workforce/calendars/r1/work-shifts


Http Verb

POST

Url

/workforce/calendars/r1/work-shifts

Permissions required


Personally Identifiable Information (PII)

No

Sensitive Information

No

Last Modified Version

r1

Released since

2024 W2 (FSM 17.0)

Deprecated since


Removed since


Tech Tags

 

Business Logic

This API creates a new Work Shift.

Validations:

  • The resourceId in input should not be related to a resource on loan.

  • It is not possible to insert for a specific resourceId and a specific day, more records than the number indicated in the property company.fsm.workshift.maxWorkshiftPerDay

  • It is not possible to overlap for a specific resourceId more shift in the same time range.

Header Parameters

Default.

Request Body Parameters

Field

Validations

Note

resourceId

Max Lenght: 10
Mandatory

 

day

Format: ISO-8601
Mandatory

YYYY-MM-DD

operationCenterId

Max Lenght: 10


typeId

Max Lenght: 10
Mandatory


note

Max Lenght: 1000

 

Response documentation

Response payload fields

Field

Note

id

 

Response error codes

CALENDAR_010, CALENDAR_002, WORKFORCE_007