Skip to main content
PUT
Update Trigger

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

trigger_id
string<uuid>
required
workspace
string
required

Slug of the workspace the request acts in

Maximum string length: 120
Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$

Body

application/json

Patch payload for a trigger. All fields optional — unset = unchanged.

agent_id
string<uuid> | null
batch
TriggerBatchWindow · object | null

Sent as null, the trigger fires on every event again.

conditions
Conditions · object | null
cron_expression
string | null
description
string | null
Maximum string length: 1000
enabled
boolean | null

Toggle the trigger active state. Maps to is_active server-side. REST clients may pass either enabled (canonical) or is_active (alias).

event_filter
Event Filter · object | null
failure_threshold
integer | null
Required range: 1 <= x <= 100
name
string | null
Required string length: 1 - 255
session
TriggerSession · object | null

What happens to the next event of the same session (ADR-0040 §4).

task_definition_id
string<uuid> | null

Sent as null, the trigger asks its own task_parameters text again.

task_parameters
Task Parameters · object | null
timezone
string | null

Response

Successful Response

Response model for trigger data.

agent_id
string<uuid>
required
conditions
Conditions · object
required
consecutive_failures
integer
required
created_at
string<date-time>
required
created_by
string
required
description
string
required
failure_threshold
integer
required
id
string<uuid>
required
is_active
boolean
required
name
string
required
status
enum<string>
required

'needs_owner' when the person who configured it can no longer run its agent; the trigger stays stopped until it is enabled again, and the next event re-checks that person's access.

Available options:
active,
inactive,
needs_owner
task_parameters
Task Parameters · object
required
trigger_type
string
required
updated_at
string<date-time>
required
batch
TriggerBatchWindow · object | null

The batch window it fires per; null fires on every event.

cron_expression
string | null
event_filter
Event Filter · object | null

Which events fire it.

last_event_at
string<date-time> | null

When the trigger's stream last recorded an event.

last_execution_at
string<date-time> | null
needs_new_owner_at
string<date-time> | null
next_run_time
string<date-time> | null
session
TriggerSession · object | null

What the next event of the same session does; null takes the defaults.

stream_id
string<uuid> | null

Stream whose events fire this trigger.

task_definition_id
string<uuid> | null

Saved task each firing asks, in place of task_parameters.

timezone
string | null