Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleCreate transaction response
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.
See Application Configuration for setting a different session duration.

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
firstline4
titleCommitting a transaction
linenumberstrue
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:

...