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.
Example request
-
POST http://localhost:7474/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:7474/db/neo4j/tx/2/commit",
"transaction" : {
"expires" : "Mon, 20 Sep 2021 07:57:36 GMT"
}
}
Was this page helpful?