Create or modify a policy

PUT https://{{host}}/imaging/v2/network/:network/policies/:policyId

Run this operation to update an existing policy or create a new policy. Run the List policies operation to get the list of existing policies and their policy IDs. Confirm the policyId doesn't already exist.

Request Params

KeyDatatypeRequiredDescription
accountSwitchKeystring(Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Request Body

{"breakpoints"=>{"widths"=>[720, 1280, 1920, 5000]}, "output"=>{"perceptualQuality"=>"mediumHigh"}, "transformations"=>[{"gravity"=>"SouthWest", "image"=>{"url"=>"www.customer.com/watermark.png"}, "transformation"=>"Composite", "xPosition"=>0, "yPosition"=>0}]}

HEADERS

KeyDatatypeRequiredDescription
ContractstringUnique identifier for the Akamai Contract containing the policy sets. Required if you have access to more than one contract with Image & Video Manager.
Policy-Setstring(Required) Unique identifier for the Image & Video Manager policy set.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"description":"Policy `watermark` created.","id":"watermark","operationPerformed":"CREATED"}