---
updatedAt: 2026-03-01T18:45:23.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/ivm/llms.txt
---

# Roll back a policy

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.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Image and Video Manager API",
    "url": "https://techdocs.akamai.com/ivm/reference"
  },
  "info": {
    "title": "Policies",
    "version": "2"
  },
  "openapi": "3.0.0",
  "paths": {
    "/network/{network}/policies/rollback/{policyId}": {
      "put": {
        "description": "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.\n",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Image and Video Manager API",
          "url": "https://techdocs.akamai.com/ivm/reference/put-rollback-policy"
        },
        "operationId": "put-rollback-policy",
        "parameters": [
          {
            "description": "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).\n",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "description": "Policy `watermark` has been rolled back to version 1.",
                  "id": "watermark",
                  "operationPerformed": "UPDATED"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "The type of operation performed on an Image & Video Manager resource.\n",
                  "properties": {
                    "description": {
                      "description": "The description of the resource.\n",
                      "type": "string"
                    },
                    "id": {
                      "description": "Unique identifier for a resource.\n",
                      "type": "string"
                    },
                    "operationPerformed": {
                      "description": "The action performed on the resource, either `CREATED`, `UPDATED`, `DELETED`, or `CANCELLED`.\n",
                      "enum": [
                        "CREATED",
                        "UPDATED",
                        "DELETED",
                        "CANCELLED"
                      ],
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/operation-performed.yaml"
                  }
                }
              }
            },
            "description": "Successful operation.\n"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Policy 'watermarked' does not exist.",
                  "instance": "/imaging/error-instances/bf39e042-9d21-4ef3-88f1-eacf487d12f8",
                  "requestId": "5fb7efe81b819c76",
                  "status": 400,
                  "title": "Bad Request",
                  "type": "/imaging/error-types/IVM_9000"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Error messaging.\n",
                  "properties": {
                    "detail": {
                      "description": "A detailed description of the error.\n",
                      "type": "string"
                    },
                    "instance": {
                      "description": "A reference to unique instance of the error.\n",
                      "type": "string"
                    },
                    "requestId": {
                      "description": "An additional instance identifier for the error.\n",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP code for the error.\n",
                      "type": "integer"
                    },
                    "title": {
                      "description": "The summary description of the error.\n",
                      "type": "string"
                    },
                    "type": {
                      "description": "The type of error.\n",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/error.yaml"
                  }
                }
              }
            },
            "description": "Rollback failed.\n"
          }
        },
        "summary": "Roll back a policy",
        "tags": [
          "Policies"
        ]
      },
      "parameters": [
        {
          "description": "__Enum__. Network environment to execute the API request on.\n",
          "in": "path",
          "name": "network",
          "required": true,
          "schema": {
            "enum": [
              "staging",
              "production"
            ],
            "example": "production",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/network-path.yaml"
          }
        },
        {
          "description": "Unique identifier for a policy.\n",
          "in": "path",
          "name": "policyId",
          "required": true,
          "schema": {
            "example": "thumbnail_policy",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/policy-id-path.yaml"
          }
        },
        {
          "description": "Unique identifier for the Akamai Contract containing the policy sets. Required if you have access to more than one contract with Image & Video Manager.\n",
          "in": "header",
          "name": "Contract",
          "required": false,
          "schema": {
            "example": "1-1TJZFB",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/contract-id-header.yaml"
          }
        },
        {
          "description": "Unique identifier for the Image & Video Manager policy set.\n",
          "in": "header",
          "name": "Policy-Set",
          "required": true,
          "schema": {
            "example": "053eef00-9f85-11ec-a51d-47eefacf795d",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/policy-set-id-header.yaml"
          }
        }
      ]
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/imaging/v2"
    }
  ],
  "tags": [
    {
      "description": "Groups operations that manage your policies.",
      "name": "Policies"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "02-policies.yaml"
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "node"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```

# Sibling pages

* [List policies](https://techdocs.akamai.com/ivm/reference/get-policies.md)
* [Get a policy](https://techdocs.akamai.com/ivm/reference/get-policy.md)
* [Create or modify a policy](https://techdocs.akamai.com/ivm/reference/put-policy.md)
* [Remove a policy](https://techdocs.akamai.com/ivm/reference/delete-policy.md)