...
Code Block | ||
---|---|---|
| ||
Status: 201 Created Headers: Expires: Wed, 20 May 2020 23:26:46 GMT Location: http://localhost:8080/rest/fcr:tx/fd4f48c4-7c47-46ee-8907-af6411ae4215 Expires: Thu, 07 May 2020 14:18:16 GMT |
The expires header indicates when the transaction will be automatically rolled back
Warning |
---|
Transactions are automatically closed and rolled back after 3 minutes. Transactions can be refreshed by POSTing to the transaction URI returned in the "Location" header of the initial creation request. |
The following API methods on repository resources can be called within the scope of a transaction: PUT, POST, PATCH, GET, and DELETE .
...
To commit a transaction, perform a PUT request on the "commit" endpoint on the Transaction URI:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
curl -X PUT "http://localhost:8080/rest/fcr:tx/fd4f48c4-7c47-46ee-8907-af6411ae4215/commit" |
To rollback a transaction, perform a DELETE request on the Transaction URI:
...