Logo
Akamai APIs API Documentation

Roll back a policy

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

Use this operation to revert the previous version of the policy and deploy it to the network. Use this operation to stop and reverse a policy rollout.

 

Body PARAM

Key Datatype Required Description 
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



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.
Policy-Set
string (Required) Unique identifier for the Image & Video Manager policy set.
Accept
string




RESPONSES

status OK

{ "description": "Policy `watermark` has been rolled back to version 1.", "id": "watermark", "operationPerformed": "UPDATED" }

Curl
curl -X PUT 'https://host/imaging/v2/network/:network/policies/rollback/:policyId?accountSwitchKey=' -H 'Contract: ' -H 'Policy-Set: Policy-Set' -H 'Accept: application/json'

ENDPOINTS