Update a policy

PATCH {{HOST}}/admin/v1/Policies/{{id}}

Use this example to replace values of single or multiple attributes in a specific policy using a PATCH request.

Use the policyID in the request to update the specific policy.

Request Body

{"schemas"=>["urn:ietf:params:scim:api:messages:2.0:PatchOp"], "Operations"=>[{"op"=>"replace", "path"=>"description", "value"=>"Default Policy"}, {"op"=>"replace", "path"=>"name", "value"=>"Default Authentication"}]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring

RESPONSES

status: OK

{"idcsLastModifiedBy":{"type":"App","value":"36f27bdfec744a1c9ac934ee42338af6","display":"OAuthClient","$ref":"https://tenant-base-url/admin/v1/Apps/36f27bdfec744a1c9ac934ee42338af6"},"description":"Default Policy","idcsCreatedBy":{"type":"App","display":"idcssm","value":"1756dbe9c118475e9c00404fee3ad6ed","$ref":"https://tenant-base-url/admin/v1/Apps/1756dbe9c118475e9c00404fee3ad6ed"},"id":"DefaultAuthenticationTargetAppPolicy","meta":{"created":"2018-08-31T11:15:26.106Z","lastModified":"2018-09-20T05:57:10.220Z","resourceType":"Policy","location":"https://tenant-base-url/admin/v1/Policies/DefaultAuthenticationTargetAppPolicy"},"active":true,"name":"Default Authentication","policyType":{"value":"AuthenticationTargetApp","$ref":"https://tenant-base-url/admin/v1/PolicyTypes/AuthenticationTargetApp"},"schemas":["urn:ietf:params:scim:schemas:oracle:idcs:Policy"]}