Update request based on request id
put
/iam/governance/selfservice/api/v1/requests/{reqid}
Updates the specified request. The Oracle Identity Manager request id should be specified in the path parameter. The update details to update the request should be provided in the payload. The request data can be 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's could be APPROVE,RELEASE, RESUME, REASSIGN, REJECT, ESCALATE, SUSPEND, WITHDRAW, CLAIM, SAVE, CREATESUBTASK, SKIPASSIGNMENT
. Addition to these we have one additions operation of CLOSE, which can be performed on the Requests.
An Additional TaskId can be provided with the request to exclusively perform 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 on the requestId.
Request
Supported Media Types
- application/json
Path Parameters
-
reqid: string
Request ID
List of attributes of request to be updated
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 a pending request.
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/1235
Example of PUT Request Body
The following example shows the contents of the request body in JSON format.
{ "requestId": "coder-1001", "taskId": "2c91aeca-9169-47fd-847f-466763af278a", "action": "approve" }
Example of PUT Response Body
The following example shows the contents of the response body in JSON format.
{ "links": [ { "rel": "self", "href": "https://pseudo.com/iam/governance/selfservice/api/v1/requests/1235" } ], "id": "1235", "requestId": "coder-1001", "status": "SUCCESS" }