Skip to content
Last updated

Instantly enable or disable the scheduled trigger without altering the cron expression itself.

POSThttps://api.aitronos.com/v1/streamline/automations/{automation_id}/schedule/toggle

Headers

Authorization string required

Content-Type string required ยท application/json

Path Parameters

automation_id string required

Request Body

enabled boolean required
Set true to resume the cron schedule or false to pause all timed executions.

Returns

The updated automation object including schedule.enabled plus previous cron metadata.

Bash
curl -X POST "https://api.aitronos.com/v1/streamline/automations/sauto_daily_report/schedule/toggle" \
  -H "Authorization: Bearer $FREDDY_SESSION_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"enabled": true}'

Response:

{
  "id": "sauto_daily_report",
  "name": "Daily Report Generation",
  "schedule": {
    "enabled": true,
    "cron_expression": "0 10 * * 1",
    "timezone": "Europe/Zurich"
  }
}