API Reference
Update a trigger
PUT
/api/triggers/{id}
Partial update. one_off datetime rules are validated against the trigger's effective type (the stored type when type is omitted). Changing a one_off trigger's cron_expression resets last_triggered_at so the new datetime fires even after a server restart.
Operation IDupdateTrigger
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Path parameters
idintegerrequiredResource ID
Request body
This request body is required.
Content typeapplication/json
requestobject5 properties
task_keystringtypestringcron_expressionstringargumentsobjectAdditional properties are allowed.
enabledbooleanSuccess response body
200Trigger updated
Trigger updated
Content typeapplication/json
responseobject10 properties
idintegerjob_idintegertask_keystring | nulltypestringcron repeats on a cron expression; one_off fires once at the datetime in cron_expression then auto-disables.
cron_expressionstring | null5-field cron expression for type=cron; ISO-8601 datetime (UTC) for type=one_off.
argumentsstring | nullJSON-encoded arguments
enabledintegerlast_triggered_atstring | null · date-timecreated_atstring · date-timeupdated_atstring · date-timeError responses
404Resource not found
Resource not found
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "NOT_FOUND",
"message": "Resource not found"
}