Create or update the cron expression for a Streamline automation.
POSThttps://api.aitronos.com/v1/streamline/automations/{automation_id}/schedule
Authorization string required
Bearer token authentication. Use either:
Bearer ${FREDDY_API_KEY}for API key authenticationBearer ${FREDDY_SESSION_TOKEN}for session token authentication
Content-Type string required ยท application/json
automation_id string required
cron_expression string required
timezone string required
IANA timezone used to evaluate the cron schedule.
Confirmation payload with success, message, and normalized cron expression.
Bash
- Bash
- Python
- JavaScript
curl -X POST "https://api.aitronos.com/v1/streamline/automations/sauto_daily_report/schedule" \
-H "Authorization: Bearer $FREDDY_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"cron_expression": "0 10 * * 1",
"timezone": "Europe/Zurich"
}'Response:
{
"success": true,
"message": "Schedule set successfully",
"cron": "0 10 * * 1"
}- Every 24 hours:
0 0 * * * - Every Monday at 10 AM:
0 10 * * 1 - Every 15 minutes:
*/15 * * * *