Updates 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
- application/json
Path Parameters
-
pvid: string
Policy violation ID.
.
Root Schema : PolicyViolationPUT
Type:
Show Source
object
-
action(optional):
string
-
assignees(optional):
object Assignee
-
comment(optional):
string
-
detectionCount(optional):
string
-
remediator(optional):
string
-
requestId(optional):
string
-
severity(optional):
string
-
status(optional):
string
-
targetRoleId(optional):
string
-
targetUserId(optional):
string
-
taskId(optional):
string
-
type(optional):
string
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
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" -X PUT -u username:password -d @put.json https://pseudo.com/iam/governance/selfservice/api/v1/policyviolations/23F64F02C23042E49D4DF07DF4E2067B
Example of PUT Request Body
The following example shows the contents of the request body in JSON format.
{ "requestId": "Req1231", "action": "SOA ACTIONS", "taskId": "8b6026b9-9b6e-4022-ba12-5082fcaefc41", "remediator": "manas", "assignees": [ { "name": "raghav", "type": "user" } ], "type": "user" }
Example of Response Body
The following example shows the contents of the response body in JSON format.
{ "requestId": "Req1231", "action": "SOA ACTIONS", "taskId": "8b6026b9-9b6e-4022-ba12-5082fcaefc41", "remediator": "manas", "assignees": [ { "name": "raghav", "type": "user" } ], "type": "user" }