Approval - holiday transfer approvals
API Url
Used for approving or rejecting holiday transfer rgistrations.
PUT
http://localhost:16010/ProMarkREST/rest/Approval/holiday-transfers
Permissions: user
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| registrations | Object[] | Collection of holiday transfer registrations for approval |
| approvalStatus | Number | Approval status. Supported values: 2 = Approved, 3 = Rejected |
| id | String | Holiday transfer identifier |
rejectionCodeoptional | String | Rejection code if any for rejection |
rejectionTextoptional | String | Rejection Text if any for rejection |
Request example for approval:
{"request": {"data": {"registrations": [{"id": "0x0000000000309281","approvalStatus": 2},{"id": "0x0000000000309285","approvalStatus": 3,"rejectionCode": "REJCODE","rejectionText": "Rejection text will come here"}]}}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |