pagehive

update_trigger

Change a Trigger.

IntegrationsChanges dataBasic and upUpdated

What it does

Change a Trigger. Send the fields that change; new_name renames it. enabled false switches it off without deleting it. A move to an Integration of another service needs its message too.

Plans

Needs a paid plan: Basic, Pro or Ultra. On other plans your agent gets an error that says so. See Limits for what each plan includes.

Parameters

NameTypeAbout
site_idrequiredstringThe id of the site. list_sites gives the ids of your sites.
namerequiredstringThe Trigger to change.
new_namestringA new name for it.
labelstringA readable name, one line of up to 80 characters.
integrationstringAnother Integration to send with; of another service, send the message too.
onobject{ "actions": [names] }: when one of these visitor actions is applied (a tick, button, edit, form submit or delete). { "table": name }: when any row of that table changes, whoever changes it.
messageobjectWhat to send, by the Integration's service. resend: { to: [addresses], subject, text, reply_to?, from? (needed when the Integration has no default) }. slack: { text }. zapier, make, n8n, pipedream, apps_script: {} or { data } (every call sends a standard JSON event: event, trigger, integration, site_url, site_subdomain, table, action, op, actor, row_id, row (raw values), changes; data adds fields of your own, such as formatted values). custom: { method (POST, PUT, PATCH), path (added to base_url, such as "/v1/items"), body (JSON) }. subject, text, reply_to and strings in body or data may hold {{row.<column>}}, {{old.<column>}}, {{new.<column>}}, {{action}}, {{table}}, {{op}}, {{actor}}, {{site.url}}, {{site.subdomain}}, {{integration}}, {{trigger}}. A relation column can be followed one level: {{row.<relation>.<column>}} (also old., new.), empty when there is no linked row. A select shows its label; {{row.<select>.key}} its key. A row placeholder may end in a format: |number:N (decimals), |money (currency from the row's currency column) or |money:EUR, |date, |date:short, |date:long. locale (such as nl-BE) sets how formats print; default: the site's language, else en-GB. Recipients, from and path are fixed.
descriptionstring or nullWhat it is for, in plain words (up to 500 characters). null clears it.
conditionobject or nullOnly when: column, op and value (no value for is_empty and is_not_empty). null runs on every change.
runs_forarray of one of: owner, member, share, public, agentWho may start it: owner, member, share (share links), public, agent (agents and API keys). Default all.
enabledbooleanfalse switches this Trigger off; other Triggers on the same Integration go on.

Example

Call update_trigger with these arguments:

{
  "site_id": "01a1…",
  "name": "new_invoice",
  "enabled": false
}

Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.

Related guides