Update Trigger Api V1 Workstreams Triggers Trigger Id Put
put
/api/v1/workstreams/triggers/{trigger_id}Update trigger
Update a trigger's configuration.
**Authentication Required:** JWT Bearer token
Path parameters
trigger_idrequiredpath | — |
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
name | string | null | Trigger name |
config | object | null | Trigger configuration |
is_active | boolean | null | Whether trigger is active |
Responses
200Trigger updated successfully
| Field | Type | Description |
|---|---|---|
idrequired | string (uuid) | Trigger UUID |
blueprint_idrequired | string (uuid) | Parent workplan UUID |
namerequired | string | Trigger name |
typerequired | "time_based" | "event_based" | "manual" | Types of workflow triggers.time_basedevent_basedmanual |
config | object | Trigger configurationshow nestedEmpty object. |
is_activerequired | boolean | Whether trigger is active |
last_fired_at | string (date-time) | null | Last trigger timestamp |
next_fire_at | string (date-time) | null | Next scheduled trigger |
created_atrequired | string (date-time) | Creation timestamp |
updated_atrequired | string (date-time) | Last update timestamp |
401Unauthorized
404Trigger not found
422Validation Error
| Field | Type | Description |
|---|---|---|
detail | ValidationError[] | —item shape |
curl https://api.dev.arch.ie/api/v1/workstreams/triggers/<trigger_id> \
-X PUT \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"name": null,
"config": null,
"is_active": null
}'