The "rollbackTransaction" action closes a transaction created by "createTransaction" and discards all changes made by actions attached to the transaction.
- When the rollback completes, it closes the transaction.
- When a transaction is closed, the associated "transactionId" becomes invalid and can no longer be used.
Request examples
Minimal
{
"action": "rollbackTransaction",
"params": {
"transactionId": "replaceWithTransactionIdFromCreateTransaction"
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}Maximal
{
"api": "db",
"action": "rollbackTransaction",
"params": {
"transactionId": "replaceWithTransactionIdFromCreateTransaction"
},
"responseOptions": {},
"apiVersion": "1.0",
"requestId": "2",
"debug": "max",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Response examples
Minimal
{
"errorCode": 0,
"errorMessage": "",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
transactionId |
The "transactionId" property identifies a transaction in which the specified action will be included. |
Optional with default of ""
|
string | 0 to 255 bytes |