Update Requests
put
/iam/governance/selfservice/api/v1/requests
Updates the requests specified in the payload. The request id for each request should be specified in the payload along with attributes to update for each request. The request data can updated or the request status can be updated.
Based on the type of action attribute provided the SOA or OIM action is executed. Here the action could be APPROVE, RELEASE, RESUME, REASSIGN, REJECT, ESCALATE, SUSPEND, WITHDRAW, CLAIM, SAVE, CREATESUBTASK, SKIPASSIGNMENT, CLOSE. As an option a TaskId can be provided for each request to exclusively perform the operation on the specific task. If the taskId is not provided then the first task in the list will be picked for the operation requested.
Request
Supported Media Types
- application/json
List of update attributes for updating requests
Response
Supported Media Types
- application/json
200 Response
Successful
Headers
-
ResponseTime: string
Captures the time in milliseconds taken for processing the request.
401 Response
Unauthorized
403 Response
Forbidden
404 Response
Resource not found
500 Response
Internal Server Error
Examples
This example demonstrates the ability to approve pending requests.
cURL Example
curl -H "Content-Type: application/json" -H "X-Requested-By: <anyvalue>" -X PUT -u username:password -d @put.json https://pseudo.com/iam/governance/selfservice/api/v1/requests
Example of PUT Request Body
The following example shows the contents of the request body in JSON format.
{ "requests": [ { "id": "1003", "actionComment": "rest sysadmin approved", "action": "approve" }, { "id": "23", "actionComment": "rest sysadmin reject", "action": "reject" } ] }
Example of PUT Response Body
The following example shows the contents of the response body in JSON format.
{ "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests" } ], "requests": [ { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/1003" } ], "id": "1003", "status": "SUCCESS" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/requests/23" } ], "id": "23", "status": "SUCCESS" } ] }