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
Body ()
.
Root Schema : PolicyViolationsPUT
Type: object
Show Source
Nested Schema : policyviolations
Type: array
Show Source
Nested Schema : PolicyViolationPUTRequest
Type: object
Show Source
Nested Schema : assignees
Type: array
Show Source
Nested Schema : Assignee
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : PolicyViolationsPUTResponse
Type: object
Show Source
Nested Schema : violations
Type: array
Show Source
Nested Schema : PolicyViolationPUTSingleResponse
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

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"
        }
    ]
}
Back to Top