---
title: "POST /v1/projects/{projectId}:rollback"
method: POST
path: "/v1/projects/{projectId}:rollback"
tags: ["projects"]
---

# POST /v1/projects/{projectId}:rollback

`POST /v1/projects/{projectId}:rollback`

Rolls back a transaction.

## Path parameters

- `projectId` string, required

## Request body

- RollbackRequest — The request for Datastore.Rollback.
  - `databaseId` string — The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
  - `transaction` string, byte — Required. The transaction identifier, returned by a call to Datastore.BeginTransaction.
  - `requestOptions` RequestOptions — Options for a request.
    - `requestTags` string[] — Optional. The request tags for the request. The tags are processed as follows: - Truncated to 510 characters. - Filtered out if empty. - Deduplicated. - Limited to 50 tags.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/datastore.md) · [All operations](https://skmtc.dev/google/apis/datastore/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/datastore/revisions/aef4907227b2/schema)
