---
title: "Discard uncommitted (staged) changes"
method: POST
path: "/version/undo"
tags: ["versioning"]
---

# Discard uncommitted (staged) changes

`POST /version/undo`

Discard all uncommitted (staged) configuration changes, resetting the working directory to the last committed state. Use only if you are certain that you do not need to preserve your local changes.<br/><br/>When applied globally (no group), triggers a Cribl restart to reload the reverted configuration. Returns <code>false</code> if the working directory is already clean.

## Response `200`

The created boolean object in a single-item list.

- CountedBoolean
  - `count` integer, required — number of items present in the items array
  - `items` boolean[], required — List of items in this response.

## Other responses

- `401` — Authentication failed (missing or invalid credentials or Bearer token).
- `500` — Unexpected server error.

---

[API](https://skmtc.dev/criblio/apis/cribl-api-reference.md) · [All operations](https://skmtc.dev/criblio/apis/cribl-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/criblio/cribl-api-reference/revisions/56cb25079271/schema)
