## Roll back zone environment `client.zones.environments.rollback(stringenvironmentId, EnvironmentRollbackParamsparams, RequestOptionsoptions?): EnvironmentRollbackResponse` **post** `/zones/{zone_id}/environments/{environment_id}/rollback` Roll back zone environment ### Parameters - `environmentId: string` - `params: EnvironmentRollbackParams` - `zone_id: string` Identifier of the zone. ### Returns - `EnvironmentRollbackResponse` - `environments: Array` - `expression: string` - `locked_on_deployment: boolean | null` - `name: string` - `position: ListCursor` - `after?: string` - `before?: string` - `ref: string` - `version: number | null` - `http_application_id?: string | null` ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const response = await client.zones.environments.rollback('environment_id', { zone_id: 'zone_id' }); console.log(response.environments); ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "result": { "environments": [ { "expression": "expression", "locked_on_deployment": true, "name": "name", "position": { "after": "yyy", "before": "xxx" }, "ref": "ref", "version": 0, "http_application_id": "http_application_id" } ] }, "success": true } ```