---
title: "Revert Ticket Deployment"
method: POST
path: "/tickets/{ticket_id}/revert"
tags: ["Tickets"]
---

# Revert Ticket Deployment

`POST /tickets/{ticket_id}/revert`

## Request

- Base URL: `https://backend.ressl.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.ressl.ai/tickets/{ticket_id}/revert`
- Auth: none declared

Revert the changes made by a ticket deployment

This endpoint supports two revert options:
1. "previous": Revert to the previous deployed state (step back one deployment)
2. "initial": Revert to the absolute initial state (jump back to the very beginning)

## Path parameters

- `ticket_id` string, required

## Query parameters

- `organization_id` string, nullable: Organization ID

## Request body

- TicketRevertRequest: Request model for reverting a ticket deployment
  - `revert_type` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ressl/apis/ressl-api.md) - [All operations](https://skmtc.dev/ressl/apis/ressl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ressl/apis/ressl-api/revisions/51e8b599d597?raw)
