Update certification task.

put

/iam/governance/selfservice/api/v1/certifications/{certid}/tasks/{taskid}

Updates the certification task specified by the task ID. The updates which can be done to the task are, reassigning the task, completing task, expire task, create proxy for task and reset a task.

Request

Supported Media Types
Path Parameters
Body ()
.
Root Schema : PutCertificationsTasksByTaskIdRequest
Type: object
Show Source
Nested Schema : fields
Type: array
Show Source
Nested Schema : PutCertificationsTasksByTaskIdRequestField
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : PutCertificationsTasksByTaskIdResponse
Type: object
Show Source
Nested Schema : fields
Type: array
Show Source
Nested Schema : PutCertificationsTasksByTaskIdResponseField
Type: object
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source

401 Response

Unauthorized

404 Response

Requested entity not found

500 Response

Internal Server Error
Back to Top

Examples

The following example updates a certification task. The information shown here is against a pseudo system and serves as a prototype.

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

Example of PUT Request Body

The following example shows the contents of the request body in JSON format.

{
   "action" : "suspend"
}

Example of the Response Body

The following example shows the contents of the response body in JSON format.

{
    "links": [
        {
            "rel": "self",
            "href": "http://pseudo.com:PORT/iam/governance/selfservice/api/v1/certifications/21/tasks/e
1d5e5dd-5f9e-4747-bd5f-e00dc0b99d58/"
        }
    ],
    "id": "e1d5e5dd-5f9e-4747-bd5f-e00dc0b99d58",
    "action": "suspend",
    "status": "SUCCESS",
    "fields": [
        {
            "name": "state",
            "value": "SUSPENDED"
        },
        {
            "name": "assignees",
            "value": [
                "Ajay Arora"
            ]
        }
    ]
}
Back to Top