Ana içeriğe atla

Endpoint

Authentication

Requires a Personal API Access Token.

Request

Headers

Path Parameters

Query Parameters

Request Body

This endpoint does not require a request body.

Response

Success Response (200 OK) - Rollback Only

Success Response (200 OK) - Rollback with Deploy

Partial Success Response (200 OK) - Rollback Succeeded, Deploy Failed

Response Fields

Error Response (400 Bad Request)

Common Causes

  • Deploy history record with the given revision does not exist
  • Environment name does not exist (when environmentName is provided)
  • API Proxy snapshot in the deploy history is corrupted

Error Response (401 Unauthorized)

cURL Examples

Rollback Only (No Deploy)

Rollback and Deploy

Notes and Warnings

  • Configuration Rollback: This operation restores the API Proxy configuration (routing, policies, settings) to the state captured in the deploy history record.
  • Deploy List Preserved: The list of environments the API Proxy is allowed to deploy to is always taken from the current state, not from the historical snapshot.
  • Optional Deploy: When environmentName is provided, the rolled-back configuration is deployed to the specified environment in a single atomic operation.
  • Deploy Failure: If the optional deploy fails, the rollback itself is still applied. The API Proxy configuration is updated, but you need to deploy manually.

Permissions

User must have API_MANAGEMENT + MANAGE permission in the project.