---
title: "Rollback a context to a version"
method: POST
path: "/v0/project/{project_name}/contexts/{context_name}/rollback"
tags: ["Contexts"]
---

# Rollback a context to a version

`POST /v0/project/{project_name}/contexts/{context_name}/rollback`

Rolls back a context to a specific version by commit hash.

## Path parameters

- `project_name` string, required
- `context_name` string, required

## Request body

- ContextRollback
  - `commit_hash` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/unify/apis/unifyai-http-api-reference.md) · [All operations](https://skmtc.dev/unify/apis/unifyai-http-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/unify/unifyai-http-api-reference/revisions/900377f918b6/schema)
