Checkpoint the shared database REST API
POST
/api/admin/system/database/checkpoint
const url = 'https://hitkeep.com/api/admin/system/database/checkpoint';const options = {method: 'POST', headers: {cookie: 'hk_token=<hk_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://hitkeep.com/api/admin/system/database/checkpoint \ --cookie hk_token=<hk_token>Runs an immediate serialized DuckDB checkpoint and records the operator action in the instance audit log.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Checkpoint result
Media typeapplication/json
object
message
string
status
string
Examplegenerated
{ "message": "example", "status": "example"}Database checkpoint failed
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}Database recovery is in progress or requires operator attention
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}