Add a trigger to an automation

Markdownとして表示

Provide exactly one schedule: a frequency cron expression for recurring runs, every_seconds for a fixed interval, or a scheduled_at timestamp for a one-time run.

Scope: automations:write

認証

AuthorizationBearer

Your ara_ API key from Settings > Ara API. Keys are capability-scoped: run, plugins:read, secrets:read, secrets:write, sessions:read, knowledge:read, repos:read, repos:write, reviews:read, reviews:write, analytics:read, org:read, org:write, attachments:read, attachments:write, plugins:write, guardrails:read, guardrails:write.

パスパラメータ

orgIdstring必須

Organization id or slug. Resolve it with GET /v3/self.

automationIdstring必須

リクエスト

This endpoint expects an object.
frequencystringオプション

Cron expression, e.g. 0 3 * * *, for a recurring trigger.

every_secondsintegerオプション

Fixed interval in seconds. Alternative to frequency.

scheduled_atdatetimeオプション

Run-at time for a one-time trigger. Alternative to frequency.

enabledbooleanオプションデフォルト値 true

レスポンス

Created.
idstringオプション
kindenumオプション
enabledbooleanオプション
scheduleobject or nullオプション
githubobject or nullオプション
webhookobject or nullオプション
run_kindstring or nullオプション
last_fired_atdatetime or nullオプション
created_atdatetimeオプション
updated_atdatetimeオプション

エラー

400
Bad Request Error
404
Not Found Error