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

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    registrationsObject[]

Collection of holiday transfer registrations for approval

      approvalStatusNumber

Approval status. Supported values: 2 = Approved, 3 = Rejected

      idString

Holiday transfer identifier

      rejectionCodeoptionalString

Rejection code if any for rejection

      rejectionTextoptionalString

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

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.