2.5. Reset transaction timeout of an open transaction

A transaction expires automatically after a period of inactivity. This can be prevented by resetting the transaction timeout.

The timeout may be reset by sending a keep-alive request to the server, which executes an empty list of statements. The request will reset the transaction timeout and return the new time at which the transaction will expire. The format of the timestamp is: Day, MM Mon YYYY HH:MI:SS +nnnn; for example: Mon, 16 Jul 2018 08:29:31 +0000.

Example request

{
  "statements" : [ ]
}

Example response

{
  "commit" : "http://localhost:7474/db/data/transaction/2/commit",
  "results" : [ ],
  "transaction" : {
    "expires" : "Wed, 22 May 2019 19:09:33 +0000"
  },
  "errors" : [ ]
}