---
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.

## Response `200`

a list of boolean objects

- CountedBoolean
  - `count` integer — number of items present in the items array
  - `items` boolean[]

## Other responses

- `401` — Unauthorized
- `500` — Unexpected error

## Changes

- **2026-03-06** `11df16b26c1d` — 1 breaking, 1 warning
  - the `items/items/` response's property type/format changed from `object`/`` to `boolean`/`` for status `200`
  - deleted the `query` request parameter `groupId`
- **2025-11-14** `72b542d3fe49` — 1 breaking
  - the `items/items/` response's property type/format changed from `string`/`` to `object`/`` for status `200`
- **2025-08-26** `72f306103a82` — 1 warning, 1 info
  - deleted the `query` request parameter `group`
  - added the new optional `query` request parameter `groupId`

[Change history](https://skmtc.dev/criblio/apis/cribl-api-reference/changes/version/undo/post.md)

---

[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/11df16b26c1d/schema)
