Keeping transactions alive with an empty statement

If you need to extend the timeout while processing a transaction, you can send a POST to the transaction’s endpoint with a blank HTTP body.

For example:

Example request

  • POST http://localhost:43573/db/neo4j/tx/2

  • Accept: application/json;charset=UTF-8

  • Content-Type: application/json

{
  "statements" : [ ]
}

Example response

  • 200: OK

  • Content-Type: application/json;charset=utf-8

{
  "results" : [ ],
  "errors" : [ ],
  "commit" : "http://localhost:43573/db/neo4j/tx/2/commit",
  "transaction" : {
    "expires" : "Fri, 8 Jan 2021 15:57:08 GMT"
  }
}