Skip to content

Thing.restore

POST /{namespace}/things/{thing}/restore

Restore brings back a deleted Thing, or one an undone Action removed, with its history and Relationships intact.

Noun
Thing
Mode
do
Event
Thing.restored

Inputs

InputTypeRequiredDescription
thingThingrequiredThe deleted Thing.

Outputs

OutputTypeRequiredDescription
thingThingrequiredThe Thing, back in every list and query it left.

Effects

FactValue
Action classNone: it runs within its seat's Limits
DoorTwo-way: it runs at once
Modestry previews it and stores nothing; send returns a pending Action; do (default) waits for the result
IdempotentWith a key: a repeat with the same Idempotency-Key returns the first Action, and a repeat without one runs again
UndoAction.undo reverses it
EmitsThing.restored
  • Refuses when the Thing is not deleted.
  • Nothing is ever purged, so every deleted Thing can be restored.

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.
The Thing is not deletedrefusedClear what the check names, then call it again.None.

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.