---
title: "Revert a store to a specific commit point"
method: POST
path: "/{storeName}/commits"
tags: ["commit point", "stores"]
---

# Revert a store to a specific commit point

`POST /{storeName}/commits`

Reverting a store creates a new commit point that refers to the same
state as an existing older commit point. In this way it is possible
to virtually roll-back a BrightstarDB store without discarding changes
made since.

## Path parameters

- `storeName` string, required

## Request body

- CommitPoint
  - `id` integer, required — The unique identifier of the commit point.
  - `storeName` string — The name of the store that holds the commit point
  - `commitTime` string, date-time — The date/time that the commit was made.
  - `jobId` string, GUID — The unique identifier of the job that created the commit.

## Response `200`

Success. The store has been reverted to the specified commit point.

## Other responses

- `400` — Bad Request. The commit point ID was not provided in the request body or the specified commit point could not be found.

## Changes

- **2015-06-30** `8b9dc0082b9c` — 2 info
  - added the non-success response with the status `400`
  - removed the non-success response with the status `405`
- **2015-05-26** `694b44600c48` — 3 info
  - api operation id `revertStore` was added
  - api tag `commit point` added
  - api tag `stores` added
- **2015-05-26** `37652d797bdc` — 1 info
  - endpoint added
- **2015-05-19** `404ee72d2da6` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/brightstardb/apis/brightstardb-rest-api/changes/:storeName/commits/post.md)

---

[API](https://skmtc.dev/brightstardb/apis/brightstardb-rest-api.md) · [All operations](https://skmtc.dev/brightstardb/apis/brightstardb-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brightstardb/brightstardb-rest-api/revisions/e94ef9356aa7/schema)
