|
Http Verb |
DELETE |
|---|---|
|
Url |
|
|
Permissions required |
Core Additional Parameters: Edit (fsm.core.additionalparameter.edit) Resource Configuration: View (fsm.core.resource.configuration.view)
|
|
Last Modified Version |
r1 |
|
Tech Tags |
|
|
Available Async |
No |
BPMN Diagram
Business Logic
This Integration API deletes in batch Work Shift Exception records, filtered by resource’s identificationNumber, work shift exception’s type code, startDate and endDate input parameters.
The Private API Suite mandates the verification of OverITs’ software license and the required user permissions. Each call initiated by the Integration API will activate both validations. Only upon successful completion of these validations can the business processes commence.
STEP 1 - External System Validation
System takes Input fields and checks their existence in internal configuration.
API Verb: GET
Resource: External Systems
Input: externalSystemCode, active=true
Output: externalSystemId
If System can obtain the Output fields → continue to next step.
If System can’t obtain the Output fields → responds with error. Elaboration is stopped.
STEP 2 - Resource Retrieval
System takes Input fields and extract the Resource filtered by identificationNumber.
If System can obtain the Output fields → continue to next step.
If System can’t obtain the Output fields → responds with error. Elaboration is stopped.
Error Type:
-
Others - see link in Resource
STEP 3 - Work Shift Exception Type Retrieval
This step is performed only if workShiftExceptionTypeCode is passed in input.
System takes Input fields and extract the Work Shift Exception Type id filtered by workShiftExceptionTypeCode.
API Verb: GET
Resource: Work Shift Exception Types
Input: workShiftExceptionTypeCode, active=true
Output: workShiftExceptionTypeId
If System can obtain the Output fields → continue to next step.
If System can’t obtain the Output fields → responds with error. Elaboration is stopped.
STEP 4 - Work Shift Exceptions Retrieval
System takes Input fields and extract all Work Shift Exceptions ids related to the resourceId and workShiftExceptionTypeId (if present), filtered in the startDate-endDate time frame.
API Verb: GET
Resource: Work Shift Exceptions
Input: startDate, endDate, resourceId, workShiftExceptionTypeId
Output: workShiftExceptionIdList
If System can obtain the Output fields → continue to next step.
If System can’t obtain the Output fields → responds with error. Elaboration is stopped.
Error Type:
-
Others - see link in Resource
STEP 5 - Work Shift Exceptions Deletion
System takes Input fields as QueryStringParameters and delete records.
If Deletion outcome is SUCCESS → elaboration is stopped. See Response payload fields.
If Deletion outcome is ERROR → elaboration is stopped. See Response payload fields.
Error Type:
-
Others - see link in Resource
Path Parameters
Not present.
Query String Parameters
Start with a ? and includes parameters listed one after the another separated by &.
Filters
|
Field |
Description |
Mandatory |
Constraint |
|
|---|---|---|---|---|
|
1 |
externalSystemCode |
External system code |
Y |
Not Blank |
|
2 |
identificationNumber |
Resource’s Identification Number |
Y |
Not Blank |
|
3 |
startDate |
Work Shift Exception Start Date |
Y |
Not Null |
|
4 |
endDate |
Work Shift Exception End Date |
Y |
Not Null |
|
5 |
workShiftExceptionTypeCode |
Work Shift Exception Type Code |
N |
Null or Not Blank |
Header Parameters
Parameters included in the request headers. Generally, request headers are used to keep authorization parameters.
Default.
Request Body Parameters
Request body parameters are used when clients send data to the API. They are shipped in a JSON Object only in POST, PUT, or PATCH requests.
Request example
{baseUrl}/integration/workforce/r1/work-shift-exceptions?externalSystemCode=SAP&identificationNumber=MI0030&startDate=2024-04-17T12:43:37.858Z&endDate=2024-04-17T12:43:37.858Z&workShiftExceptionTypeCode=ASSN1
Response documentation
Response payload fields
Compliant with RFC Standard https://www.rfc-editor.org/rfc/rfc9457.html
Extension fields:
|
Field |
Description |
Note |
|---|---|---|
|
code |
Extension member of a Problem Details Object that contains the error code |
Only for ERROR |
Response example
Error example
{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "External system string does not exist",
"instance": "/integration/workforce/r1/work-shift-exceptions",
"code": "IA001_001"
}