Skip to main content

clear_record_collection

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.

Clear collection โ€” clears a record collection produced by an earlier action. group: "action". No specific trigger context is required.

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

Configโ€‹

KeyTypeRequiredDescription
record_collectionreferencenoThe record collection to clear โ€” an action-variable reference to a prior action's collection output. Omitted when unset.

Exampleโ€‹

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

{
"type": "clear_record_collection",
"config": {
"record_collection": { "kind": "variable", "source": "action", "action_type": "record_collection", "app_id": 100 }
}
}

Validation & behaviorโ€‹

  • record_collection is the only member and is optional โ€” omitting it yields an internal action with no collection reference (no canonical default is applied).
  • As a consumer, this action needs a record_collection reference to a prior action's collection output; without one there is nothing to clear.
  • Reference an upstream collection variable (for example a record_collection action's output), not a one-element field variable.

See alsoโ€‹