Create a policy set
POST https://{{host}}/imaging/v2/policysets
Create a new policy set for the contract on both networks.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
accountSwitchKey | string | (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
{"defaultPolicy"=>{"breakpoints"=>{"widths"=>[720, 1280, 1920, 5000]}, "output"=>{"perceptualQuality"=>"mediumHigh"}}, "name"=>"my_policy_set", "region"=>"US", "type"=>"IMAGE"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Contract | string | Unique identifier for the Akamai Contract containing the policy sets. Required if you have access to more than one contract with Image & Video Manager. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"id":"123ab456-cde7-89ab-1234-56c789d12e4","lastModified":"2022-01-02 08:10:02+0000","name":"my_policy_set","properties":[],"region":"US","type":"IMAGE","user":"adevi"}