Skip to content
Last updated

Create or update the cron expression for a Streamline automation.

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

Headers

Authorization string required
Bearer token authentication. Use either:

  • Bearer ${FREDDY_API_KEY} for API key authentication
  • Bearer ${FREDDY_SESSION_TOKEN} for session token authentication

Content-Type string required ยท application/json

Path Parameters

automation_id string required

Request Body

cron_expression string required

timezone string required
IANA timezone used to evaluate the cron schedule.

Returns

Confirmation payload with success, message, and normalized cron expression.

Bash
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"
}

Cron examples

  • Every 24 hours: 0 0 * * *
  • Every Monday at 10 AM: 0 10 * * 1
  • Every 15 minutes: */15 * * * *