SelfService - Approve/Reject requests

API Url

Used for approving, rejecting or deleting Self-service requests.

POST
http://localhost:16010/ProMarkREST/rest/SelfService/actions

Permissions: user

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    actionsObject[]

Actions to perform on requests.

      actionString

Action to do ("approve", "reject", "delete").

Allowed values:"approve""reject""delete"
      commentoptionalString

Comment on approve/reject. Invalid for delete.

      requestsObject[]

Collection of requests to handle.

        idNumber

Unique identifier of the request.

Request example for approve:

{
"request": {
"data": {
"actions": [
{
"action": "approve",
"requests": [
{
"id": 2168603
},
{
"id": 456789
}
]
}
]
}
}
}

Request example for reject:

{
"request": {
"data": {
"actions": [
{
"action": "reject",
"comment": "Not this time of the year",
"requests": [
{
"id": 2168603
},
{
"id": 456789
}
]
}
]
}
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.