Roll resource traffic back to a previous deployment revision
POST
/v1/servers/{serverId}/rollbackHow to call this endpoint
Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.
Path, query, and header parameters
These parameters control which ACP object the endpoint acts on and how the request is processed.
Path parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| serverId | path | string | Yes | Resource ID |
Query parameters
None.
Body schema
Content type: application/json · Optional
| Field | Type | Required | Description |
|---|---|---|---|
| deploymentId | string | No | Deployment history id to restore. If omitted, the latest previous successful revision is used. |
| revision | string | No | Cloud Run revision to restore. |
What the API returns
Each response code below includes the documented payload shape for the ACP API.
200Resource rolled backapplication/json
| Field | Type | Required | Description |
|---|---|---|---|
| server | object | No | — |
| server.id | string | No | Unique identifier. |
| server.userId | string | No | User ID. |
| server.projectId | string | No | Project ID. |
| server.name | string | No | Human-readable name. |
| server.description | string | No | Human-readable description. |
| server.kind | website | web_app | api | function | auth | agent_runtime | secrets | No | — |
| server.sourceType | string | No | — |
| server.sourceEnvironmentId | string | No | — |
| server.sourcePath | string | No | Workspace-relative file path. |
| server.region | string | No | — |
| server.runtime | string | No | — |
| server.authMode | public | private | No | — |
| server.serviceUrl | string | No | — |
| server.customDomain | string | No | — |
| server.cloudRunServiceName | string | No | — |
| server.imageUrl | string | No | — |
| server.status | draft | deploying | deployed | failed | inactive | No | Current lifecycle status. |
| server.lastDeployedAt | string | No | — |
| server.metadata | object | No | Free-form metadata object. |
| server.createdAt | string | No | ISO 8601 timestamp. |
| server.updatedAt | string | No | ISO 8601 timestamp. |
| deployment | object | No | — |
| deployment.id | string | No | Unique identifier. |
| deployment.at | string | No | — |
| deployment.outcome | success | failed | rollback | No | — |
| deployment.type | string | No | — |
| deployment.serviceName | string | No | — |
| deployment.region | string | No | — |
| deployment.revision | string | No | — |
| deployment.serviceUrl | string | No | — |
| deployment.imageUrl | string | No | — |
| deployment.runtime | string | No | — |
| deployment.authMode | string | No | — |
| deployment.sourceEnvironmentId | string | No | — |
| deployment.sourcePath | string | No | Workspace-relative file path. |
| deployment.connections | object | No | — |
| deployment.error | string | No | — |
| deployment.rolledBackToDeploymentId | string | No | — |
| activeDeployment | object | No | — |
| activeDeployment.id | string | No | Unique identifier. |
| activeDeployment.at | string | No | — |
| activeDeployment.outcome | success | failed | rollback | No | — |
| activeDeployment.type | string | No | — |
| activeDeployment.serviceName | string | No | — |
| activeDeployment.region | string | No | — |
| activeDeployment.revision | string | No | — |
| activeDeployment.serviceUrl | string | No | — |
| activeDeployment.imageUrl | string | No | — |
| activeDeployment.runtime | string | No | — |
| activeDeployment.authMode | string | No | — |
| activeDeployment.sourceEnvironmentId | string | No | — |
| activeDeployment.sourcePath | string | No | Workspace-relative file path. |
| activeDeployment.connections | object | No | — |
| activeDeployment.error | string | No | — |
| activeDeployment.rolledBackToDeploymentId | string | No | — |
Roll resource traffic back to a previous deployment revision
Loading...
Response 200
Loading...