Add a trigger to an automation

Ver como 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

Autenticación

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.

Parámetros de ruta

orgIdstringRequerido

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

automationIdstringRequerido

Solicitud

This endpoint expects an object.
frequencystringOpcional

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

every_secondsintegerOpcional

Fixed interval in seconds. Alternative to frequency.

scheduled_atdatetimeOpcional

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

enabledbooleanOpcionalValor predeterminado: true

Respuesta

Created.
idstringOpcional
kindenumOpcional
enabledbooleanOpcional
scheduleobject or nullOpcional
githubobject or nullOpcional
webhookobject or nullOpcional
run_kindstring or nullOpcional
last_fired_atdatetime or nullOpcional
created_atdatetimeOpcional
updated_atdatetimeOpcional

Errores

400
Bad Request Error
404
Not Found Error