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
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| actions | Object[] | Actions to perform on requests. |
| action | String | Action to do ("approve", "reject", "delete"). "approve""reject""delete" |
commentoptional | String | Comment on approve/reject. Invalid for delete. |
| requests | Object[] | Collection of requests to handle. |
| id | Number | 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
| 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. |