---
title: "Rollback to selected deployment output"
method: POST
path: "/deployments/{id}/rollback"
---

# Rollback to selected deployment output

`POST /deployments/{id}/rollback`

## Request

- Base URL: `https://api.eurobase.dev`
- URL: `https://api.eurobase.dev/deployments/{id}/rollback`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-eurobase_session` and API key in header `X-Eurobase-CSRF`

## Path parameters

- `id` string, required

## Headers

- `Idempotency-Key` string, required

## Response `201`

Deployment and rollback job persisted before external dispatch

- DeploymentActionResponse
  - `deployment` object, required
    - `id` string, required
    - `projectId` string, required
    - `status` string, required
    - `terminal` boolean, required
    - `statusReason` string, nullable
    - `statusView` object, required
      - `primaryLabel` string, required
      - `secondaryLabel` string, nullable
      - `tone` string, required
  - `job` object, required
    - `id` string, required
    - `status` string, required
    - `type` string, nullable

## Other responses

- `409`: A visible non-terminal deployment is already in progress for the project, or the action key was reused for a different selected source

---

[API](https://skmtc.dev/eurobase/apis/eurobase-api.md) · [All operations](https://skmtc.dev/eurobase/apis/eurobase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/eurobase/apis/eurobase-api/revisions/5266a299d18a?raw)
