Update Pending Violation

put

/iam/governance/selfservice/api/v1/policyviolations/{pvid}

Updates the pending violation policy attributes for the specified policy violation.

Request

Supported Media Types
Path Parameters
Body ()
.
Root Schema : PolicyViolationPUT
Type: object
Show Source
Nested Schema : Assignee
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : PolicyViolationPUTResponse
Type: object
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source

401 Response

Unauthorized

404 Response

Resource not found

500 Response

Internal Server Error

Default Response

Unexpected error
Back to Top

Examples

This example demonstrates the ability to update a given policy violation. 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/policyviolations/1CBEF68E0BCC413D81ADA2EE1F
6CFC75

Example of PUT Request Body

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

{
    "requestId": "Req123",
    "taskId": "f394bc9a-9eab-4da4-88c3-86fcfbbf0e5d",
    "action": "Suspend",
    "comment" : "suspend for now"
}

Example of 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/policyviolations/1CBEF68E
0BCC413D81ADA2EE1F6CFC75"
        }
    ],
    "requestId": "Req123",
    "taskId": "f394bc9a-9eab-4da4-88c3-86fcfbbf0e5d",
    "status": "SUCCESS"
}
Back to Top