Recovery Objective routes: update, delete
The Recovery Objective Verbs update, delete as api.sb routes, with inputs, result, refusals and an example.
Reference for Recovery Objective, one group of Recovery Objective routes.
RecoveryObjective.update
Changes the given properties of a Recovery Objective. Verb page.
PATCH /{namespace}/ recovery-objectives/ {id}Path: id. Body, as JSON: the other inputs. Emits RecoveryObjective.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Recovery Objective. |
recoveryPoint | string | The most data a failure may lose, as a window such as 15m. | |
recoveryTime | string | How fast the Capability returns after a failure, as a window such as 4h. | |
drillEvery | string | The restore drill cadence, such as quarterly. | |
lastDrill | datetime | When the last restore drill met both objectives. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
recoveryObjective | Recovery Objective | required | The Recovery Objective. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X PATCH https: //api.sb/ leaseline.app/ recovery-objectives/ recovery_MSAgl5dysq \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
-H "Content-Type: application/ json" \
-d '{"lastDrill": "2026-10-22T12: 00: 00Z"}'{
"api": "https: //api.sb/ leaseline.app",
"recoveryObjective": {
"$id": "https: //api.sb/ leaseline.app/ recovery-objectives/ recovery_MSAgl5dysq",
"$type": "RecoveryObjective",
"recoveryPoint": "Example recovery point",
"recoveryTime": "Example recovery time",
"drillEvery": "Example drill every",
"lastDrill": "2026-10-22T12: 00: 00Z"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "RecoveryObjective.update",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}RecoveryObjective.delete
Deletes a Recovery Objective: a soft delete that keeps its history, undone by Thing.restore. Verb page.
DELETE /{namespace}/ recovery-objectives/ {id}Path: id. Emits RecoveryObjective.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Recovery Objective. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
recoveryObjective | Recovery Objective | required | The Recovery Objective. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X DELETE https: //api.sb/ leaseline.app/ recovery-objectives/ recovery_MSAgl5dysq \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"{
"api": "https: //api.sb/ leaseline.app",
"recoveryObjective": {
"$id": "https: //api.sb/ leaseline.app/ recovery-objectives/ recovery_MSAgl5dysq",
"$type": "RecoveryObjective",
"recoveryPoint": "Example recovery point",
"recoveryTime": "Example recovery time",
"drillEvery": "Example drill every"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "RecoveryObjective.delete",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}