Instantly enable or disable the scheduled trigger without altering the cron expression itself.
POSThttps://api.aitronos.com/v1/streamline/automations/{automation_id}/schedule/toggle
Authorization string required
Content-Type string required ยท application/json
automation_id string required
enabled boolean required
Set true to resume the cron schedule or false to pause all timed executions.
The updated automation object including schedule.enabled plus previous cron metadata.
Bash
- Bash
- Python
- JavaScript
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"
}
}