Update Lineitems Associated with Specified Task
put
/iam/governance/selfservice/api/v1/certifications/{certid}/tasks/{taskid}/lineitems/{lineitemid}
Updates the line item specified by the line item ID associated with the taskid . The updates actions which can be done to the line items are, claim, revoke, abstain, complete, sign-off, edit comment, Reset Status.
Request
Supported Media Types
- application/json
Path Parameters
-
certid(required): string
Certification ID
-
lineitemid(required): string
LineItem ID
-
taskid(required): string
Task ID
Action to be taken on the LineItem
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
404 Response
Requested entity not found
500 Response
Internal Server Error
Default Response
Unexpected error
Examples
This example demonstrates the ability to update a single line item associated with a certification task. The information shown here is against a pseudo system and serves as a prototype.
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/certifications/21/tasks/e1d5e5dd-5f9e-4747 -bd5f-e00dc0b99d58/lineitems/21"
Example of PUT Request Body
The following example shows the contents of the request body in JSON format.
{ "lineItem": { "action": "Claim", "fields": [ { "name": "comment", "value": "test Claim" } ] } }
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/certifications/21/tasks/e1d5e5dd-5f9e- 4747-bd5f-e00dc0b99d58/lineitems/21" } ], "lineItem": { "action": "Claim", "status": "SUCCESS", "lineItemId": "21" } }