Start an encrypted disaster-recovery backup and return its job id (501 without the DR service)
const url = 'https://example.com/v1/console/dr/backup';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"notes":"example","passphrase":"example"}'};
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://example.com/v1/console/dr/backup \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "notes": "example", "passphrase": "example" }'Starts an encrypted disaster-recovery backup of the store and returns the job’s id (202); follow the job at /v1/console/dr/jobs/{job_id}/stream. The passphrase must meet the documented floor and encrypts the backup keys.
Authorizations
Section titled “ Authorizations ”Request Body required
Section titled “ Request Body required ”object
Passphrase encrypting the backup keys; must meet the documented floor.
Example generated
{ "notes": "example", "passphrase": "example"}Responses
Section titled “ Responses ”Accepted: the backup job started; follow it at /v1/console/dr/jobs/{job_id}/stream
object
Example generated
{ "job_id": "example"}Bad request
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Unauthenticated
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Forbidden
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Not found
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Conflict / setup required
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Rate limited
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}