Update provisioning tasks
put
/iam/governance/selfservice/api/v1/provtasks
Updates all provisioning tasks as part of payload list.
Request
Supported Media Types
- application/json
Provisioning task inputs
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
Default Response
Unexpected error
Examples
This demonstrates the ability to update multiple provisioning tasks in a single request. The information shown here is against a pseudo system and serves as a prototype.
cURL Example
curl -H "Content-Type: application/json" -X PUT -u username:password -d @put.json https://pseudo.com/iam/governance/selfservice/api/v1/provtasks
Example of PUT Request Body
The following example shows the contents of the request body in JSON format.
{ "tasks": [ { "id": "8062", "requestId": "10001", "fields": [ { "name": "Process Instance.Task Details.Note", "value": "Updated value of Note-Sonia4" }, { "name": "Process Instance.Task Details.Projected End", "value": "2016-05-21" } ] }, { "id": "8059", "requestId": "8059", "fields": [ { "name": "Process Instance.Task Details.Note", "value": "Updated value of Note-Sonia4" }, { "name": "Process Instance.Task Details.Projected End", "value": "2016-05-21" }, { "name": "Process Instance.Task Details.Projected Start", "value": "2016-05-22" } ] } ] }
Example of PUT Response Body
The following example shows the contents of the response body in JSON format.
{ "tasks": [ { "id": "8062", "requestId": "10001", "fields": [ { "name": "Process Instance.Task Details.Note", "value": "Updated value of Note-Sonia4" }, { "name": "Process Instance.Task Details.Projected End", "value": "2016-05-21" } ] }, { "id": "8059", "requestId": "8059", "fields": [ { "name": "Process Instance.Task Details.Note", "value": "Updated value of Note-Sonia4" }, { "name": "Process Instance.Task Details.Projected End", "value": "2016-05-21" },{ "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/provtasks" } ], "tasks": [ { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/provtasks/8062" } ], "id": "8062", "status": " SUCCESS", "requestId": "10001" }, { "links": [ { "rel": "self", "href": "http://pseudo.com/iam/governance/selfservice/api/v1/provtasks/8059" } ], "id": "8059", "status": " FAIL", "requestId": "8059", "reason": "oracle.iam.rest.commons.exceptions.InvalidInputException: Start Date is greater then End Date" } ] } { "name": "Process Instance.Task Details.Projected Start", "value": "2016-05-22" } ] } ] }