Skip to main content

current_record_restore

Internal beta โ€” config shape is being migrated

The Automation API is an internal beta and is not released yet โ€” endpoints and payloads may change or be withdrawn without notice. This action's config is being migrated to a typed schema; the fields below reflect that in-progress shape. Always read the authoritative, live shape from GET /v1/automation/meta/action before building against it.

Restore record โ€” restores the current soft-deleted record. group: "action". Requires any record-context trigger.

Part of the Current record family. This page documents the typed config; for how an action sits inside an automation definition, see Actions and Action examples.

Configโ€‹

Restoring a record is a mutation, so the action carries only the shared record-mutation envelope and nothing of its own. Every member is optional; omitting one falls back to the internal default.

KeyTypeRequiredDescription
author_idinteger | referencenoUser the mutation is attributed to โ€” a literal user id, or a reference (created-by / last-modified-by / a user field). Omitted โ†’ the automation itself.
trigger_webhooksbooleannoWhether the mutation fires outbound webhooks.
trigger_other_flowsbooleannoWhether the mutation triggers other automations.
silentbooleannoWhether the mutation is silent (suppresses notifications).

Exampleโ€‹

An action entry inside an automation definition's actions[]:

{
"type": "current_record_restore",
"config": {
"author_id": { "kind": "variable", "source": "meta", "meta_type": "last_modified_by" },
"silent": true
}
}

The config may also be empty ("config": {}) โ€” the restore then runs with every envelope member at its default.

Validation & behaviorโ€‹

  • No member is required; an empty config is valid and runs the restore with all envelope defaults.
  • author_id accepts either a literal user id or a variable reference; omitted, the mutation is attributed to the automation itself.
  • trigger_webhooks, trigger_other_flows, and silent are booleans that gate the mutation's side effects; omitted, each uses its internal default.
  • Restores the current soft-deleted record, so it is typically only reachable after an upstream current_record_delete in the same run โ€” outside that context there is nothing to restore.

See alsoโ€‹