Method: projects.databases.documents.beginTransaction | Firebase
Method: projects.databases.documents.beginTransaction
Starts a new transaction.
HTTP request
POST https://firestore.googleapis.com/v1/{database=projects/*/databases/*}/documents:beginTransaction
The URLs use gRPC Transcoding syntax.
Path parameters
| Parameters |
|---|
database |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
<br>{ <br> "options": { <br> object (TransactionOptions) <br> } <br>} <br> |
| Fields |
|---|
options |
Response body
The response for Firestore.BeginTransaction.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
<br>{ <br> "transaction": string <br>} <br> |
| Fields |
|---|
transaction |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/datastorehttps://www.googleapis.com/auth/cloud-platform
For more information, see the OAuth 2.0 Overview.