Updates policy violations.
put
/iam/governance/selfservice/api/v1/policyviolations
Updates the pending violations attributes for one or more policy violations.
Request
Supported Media Types
- application/json
.
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
Resource not found
500 Response
Internal Server Error
Default Response
Unexpected error
Examples
The following example demonstrates the ability to update policy violations. 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/policyviolations
Example of PUT Request Body
The following example shows the contents of the request body in JSON format.
{ "policyviolations": [ { "requestId": "Req1231", "id": "1E5EE9C898EE47FB890669DAB38758A2", "taskId": "d6d86b88-a2ce-42f6-ae18-6810ed6033cc", "action": "Suspend", "comment" : "temporary suspend" } ] }
Example of PUT 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/" } ], "violations": [ { "links": [ { "rel": "self", "href": "http://pseudo.com:PORT/iam/governance/selfservice/api/v1/policyviolations/1E5EE9C8 98EE47FB890669DAB38758A2" } ], "requestId": "Req1231", "taskId": "d6d86b88-a2ce-42f6-ae18-6810ed6033cc", "status": "SUCCESS" } ] }