Palbase ai · API
PATCH
/ai/triggers/{trigger_id}Update a trigger
Update a trigger's schedule, filter, prompt template, limits, or enabled state.
Called by your server, with the project's secret key.
Path
trigger_idstring · requiredTrigger identifierRequest body
enabledboolean · optionalsource_configobject · optionaltarget_configobject · optionaldedupe_key_exprstring · optionalmax_runs_hourinteger · optionalcurl
curl -X PATCH "https://<your-ref>.palbase.studio/ai/triggers/<trigger_id>" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"enabled":false,"source_config":{"schedule":"string","timezone":"string","topic":"string","filter":{},"signature_header":"string","timestamp_header":"string","max_skew_seconds":0},"target_config":{"kind":"workflow"},"dedupe_key_expr":"string","max_runs_hour":0}'Responses
200Updated trigger
400The request is malformed, or names what this module does not offer (the error names which)
401No valid credential
403A publishable key or a user's session: everything here is the project's server's, called with the secret key
404No such response, job or provider in this project
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation UpdateTrigger of ai's contract.