Apply an uploaded bundle: with the dual-control gate armed this records an intent for a second administrator to approve (request_id); otherwise it starts the restore job (job_id)
const url = 'https://example.com/v1/console/dr/restore/example/apply';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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/restore/example/apply \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "passphrase": "example" }'Applies an uploaded bundle. With the dual-control gate armed this records an intent for a distinct administrator to approve (202 with request_id); otherwise it starts the restore job (202 with job_id). A delegated credential cannot pass the gate.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The id returned by the upload.
Request Body required
Section titled “ Request Body required ”object
Passphrase decrypting the backup keys (the single-actor path).
Example generated
{ "passphrase": "example"}Responses
Section titled “ Responses ”Accepted
The apply outcome: a job id (single-actor path) OR an awaiting-approval request id (dual-control path).
object
True when the dual-control gate armed and the restore records an intent instead of running.
The pending request a distinct administrator approves.
Example generated
{ "awaiting_approval": true, "initiator": "example", "job_id": "example", "request_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" }}