Updates policy violation task.

put

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

Updates the policy violation task by either assigning to another user or taking an action on the task.

Request

Supported Media Types
Path Parameters
Body ()
.
Root Schema : PolicyViolationTasksPUT
Type: object
Show Source
Nested Schema : policyviolationcause
Type: array
Show Source
Nested Schema : PolicyViolationTaskPUT
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : PolicyViolationTasksPUTResponse
Type: object
Show Source
Nested Schema : policyviolationcause
Type: array
Show Source
Nested Schema : PolicyViolationTaskSinglePUTResponse
Type: object
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source

401 Response

Unauthorized

403 Response

Forbidden

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 policy violations causes for a given policy violation task in a single request. This particularly shows a failure response if the policy is completed or not available. 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/6F5592D7A5CE42CDB8A38996180A7D18/causes

Example of PUT Request Body

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

{
  "policyviolationcause": [
    {
      "requestId": "gyjgh",
      "causeId": "287874BB86344E3DA243FC84029D76AF",
      "action": "ACCEPT_RISK",
      "comment": "CommentABC",
      "riskAcceptedExpirationDate": "11-May-16"
    }
  ]
}

Example of PUT Response Body

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

{
  "policyviolationsresponse": [
    {
      "links": [
        {
          "rel": "self",
          "href": "http://pseudo.com/iam/governance/selfservice/api/v1/policyviolations/5D4D3C107D7745A8BC21F6DB9888959D/causes"
        }
      ],
      "requestId": "gyjgh",
      "status": " FAIL",
      "reason": "IAM-8110005 : The specified risk-accepted expiration date 5/11/16 is invalid. The date must be in the future and no later than 6/30/16."
    }
  ]
}
Back to Top