---
title: "Rollback to previous version"
method: POST
path: "/apps/{appRef}/rollback"
tags: ["Versions"]
---

# Rollback to previous version

`POST /apps/{appRef}/rollback`

## Request

- Base URL: `https://api.percher.run`
- URL: `https://api.percher.run/apps/{appRef}/rollback`
- Auth: HTTP bearer

## Path parameters

- `appRef` string, required

## Request body

- object
  - `commitSha` string, required: A version sha, its deploy id, or the git sha it was built from.

## Response `202`

Rollback queued

## Other responses

- `404`: Commit not found

---

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