Add Workflow Trigger
Add a trigger to the workflow's draft. A schedule starts every hour, every day, until you change it; a webhook gets its URL at once, answered in webhookUrl. Send the revision you last read in If-Match; the response's meta.revision is the new one.
Path
The workflow's id.
Headers
Required. The draft revision you last read (the revision from Get Workflow Definition, or meta.revision from your last change). The change applies only if nobody changed the draft since: otherwise it answers 412 with the current revision in error.details.revision. Send it as a strong entity tag ("r_..."): a weak one (W/"...") never matches and answers 412. Without it the request answers 428.
Optional. The id of a child organization of your API key's company to act on. Leave it out to act on the key's own company. See Child organizations.
Body
schedule, webhook, runWorkflow, or an app slug.
schedule, webhook, runWorkflow (When called: another workflow calls this one), or an app with trigger actions (List Universal Apps, usableAsTrigger=true).
latest, or a version number.
latest (the default) pins the current published version. A version number pins that version.
An app event's trigger id or slug.
For an app event: the trigger's id or slug (List Universal Actions, kind=trigger). Built-ins take none.
The trigger's display name.
The step's display name. Left out, it is named the way the editor names it.
Response fields
idstringThe trigger's id.
namestringThe trigger's display name.
appSlugstringWhat starts the workflow: schedule, webhook, runWorkflow (when another workflow calls it), or the app whose event does.
appVersionstringThe app version the trigger is pinned to. "0" for built-in triggers.
actionIdstringThe app event the trigger listens for. Null for a built-in trigger.
isDisabledbooleanTrue when the trigger is turned off.
isConfiguredbooleanWhether the trigger passed the editor's validation. Null when it was never validated.
webhookUrlstringFor a webhook trigger, the URL that starts the workflow. Null for other triggers.