native_trigger

create native trigger

Changed on

Creates a new native trigger for the specified service. Requires write access to the script or flow that the trigger will be associated with.

post/w/{workspace}/native_triggers/{service_name}/create

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/w/{workspace}/native_triggers/{service_name}/create
  • Auth: one of:
    • HTTP bearer
    • API key in cookie token

Path parameters

workspacestring required
service_name'nextcloud' | 'google' | 'github' required

Request body

script_pathstring required

The path to the script or flow that will be triggered

is_flowboolean required

Whether the trigger targets a flow (true) or a script (false)

service_configobject required

Service-specific configuration (e.g., event types, filters)

summarystring nullable

Short summary to be displayed when listed

enabledboolean

Whether the trigger starts a job when it fires. Honoured on create only, so a trigger can be registered already paused; an update ignores it and setenabled is the only way to change an existing trigger's state. Defaults to true.

Response

native trigger created

external_idstring required

The external ID of the created trigger from the external service

Changes