UpdatePolicy
PUT {{baseUrl}}/policies/:policyId
Updates the specified policy. You can update the description or the policy statements themselves.
Policy changes take effect typically within 10 seconds.
Request Body
{"description"=>"eiusmod", "statements"=>["dolor sint", "ipsum"], "versionDate"=>"1969-05-28T19:02:29.348Z"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
if-match | string | For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match | |
parameter to the value of the etag from a previous GET or POST response for that resource. The resource | |||
will be updated or deleted only if the etag you provide matches the resource's current etag value. | |||
Content-Type | string | ||
Date | string | (Required) Current Date | |
Authorization | string | (Required) Signature Authentication on Authorization header | |
x-content-sha256 | string | (Required) Content sha256 for POST, PUT and PATCH operations |
RESPONSES
status: OK
{"id":"proident in","compartmentId":"ea consequat","name":"aute esse aliqua proident dolor","statements":["aliqua enim ut Excepteur","elit aute labore"],"description":"eu aute sint ullamco","timeCreated":"1979-12-12T13:42:38.126Z","lifecycleState":"DELETING","definedTags":{},"freeformTags":{},"inactiveStatus":87262274,"versionDate":"1986-11-07T09:17:24.493Z"}