Skip to main content
POST
Create Schedule
Integration Prompt for AI Agents
This endpoint allows you to create a schedule to run your simulations on a recurring basis. Provide the schedule configuration in the request body, including the simulation ID. The endpoint returns the created schedule with its ID, simulation ID, cron expression, and enabled status.

Headers

X-Organization-Id
string
X-API-Key
string
required

API key required to authenticate requests.

Body

application/json
simulation_id
string
required

The unique identifier for the associated simulation.

schedule
EveryNMinutesSchedule · object
required

The schedule for the cron job.

timezone
string | null

IANA timezone the cron expression is read in. Null means UTC.

enabled
boolean | null
default:true

Whether the cron job should be enabled upon creation.

Response

Successful Response

id
string
required

The unique identifier for the created cron job.

simulation_id
string
required

The unique identifier for the associated simulation.

cron_expression
string
required

The cron expression defining the job schedule.

enabled
boolean | null

Whether the cron job is enabled.

timezone
string | null

IANA timezone the cron expression is read in. Null means UTC.