palbaseDocs

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 identifier

Request body

enabledboolean · optional
source_configobject · optional
target_configobject · optional
dedupe_key_exprstring · optional
max_runs_hourinteger · optional
curl
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.