Method: projects.locations.apis.versions.specs.rollback

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

HTTP request

POST https://apigeeregistry.googleapis.com/v1/{name=projects/*/locations/*/apis/*/versions/*/specs/*}:rollback

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The spec being rolled back.

Request body

The request body contains data with the following structure:

JSON representation
{
  "revisionId": string
}
Fields
revisionId

string

Required. The revision ID to roll back to. It must be a revision of the same spec.

Example: c7cfa2a8

Response body

If successful, the response body contains an instance of ApiSpec.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform