Add a trigger to an automation

Afficher en 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

Authentification

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.

Paramètres de chemin

orgIdstringRequis

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

automationIdstringRequis

Requête

This endpoint expects an object.
frequencystringOptionnel

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

every_secondsintegerOptionnel

Fixed interval in seconds. Alternative to frequency.

scheduled_atdatetimeOptionnel

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

enabledbooleanOptionnelPar défaut true

Réponse

Created.
idstringOptionnel
kindenumOptionnel
enabledbooleanOptionnel
scheduleobject or nullOptionnel
githubobject or nullOptionnel
webhookobject or nullOptionnel
run_kindstring or nullOptionnel
last_fired_atdatetime or nullOptionnel
created_atdatetimeOptionnel
updated_atdatetimeOptionnel

Erreurs

400
Bad Request Error
404
Not Found Error