Skip to content

Recovery Objective programs: update, delete

The Recovery Objective Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.

Reference for Recovery Objective, one group of Recovery Objective programs.

RecoveryObjective.update

Changes the given properties of a Recovery Objective. Verb page.

Text
do: return await $.RecoveryObjective.update(input)

Emits RecoveryObjective.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Recovery Objective.
recoveryPointstringThe most data a failure may lose, as a window such as 15m.
recoveryTimestringHow fast the Capability returns after a failure, as a window such as 4h.
drillEverystringThe restore drill cadence, such as quarterly.
lastDrilldatetimeWhen the last restore drill met both objectives.

Returns

OutputTypeRequiredDescription
recoveryObjectiveRecovery ObjectiverequiredThe Recovery Objective.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.RecoveryObjective.update({ id: 'recovery_MSAgl5dysq', lastDrill: '2026-10-22T12:00:00Z' })"
  }
}

RecoveryObjective.delete

Deletes a Recovery Objective: a soft delete that keeps its history, undone by Thing.restore. Verb page.

Text
do: return await $.RecoveryObjective.delete(input)

Emits RecoveryObjective.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Recovery Objective.

Returns

OutputTypeRequiredDescription
recoveryObjectiveRecovery ObjectiverequiredThe Recovery Objective.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.RecoveryObjective.delete({ id: 'recovery_MSAgl5dysq' })"
  }
}