Create a schedule
Start an instance or a job later. Send run_at to run once, or cron (with timezone) to repeat. spec is the body of POST /instances or POST /jobs and is checked now, so a schedule that is accepted can launch. Every schedule needs spec.max_runtime_minutes, so nothing it starts runs unbounded. Runs start within about 2 minutes of their time, as you, through the credential you created it with: revoking that API key or ending that agent sign-in pauses the schedule. At most 50 schedules per environment and 200 per workspace.
Authorizations
Use a Runcrate API key with the rc_live_* prefix as the bearer token. Create one at https://www.runcrate.ai/dashboard/api-keys.
Body
Send exactly one of run_at (once) or cron (repeating).
Response
Schedule created.
Starts an instance or a job later: once at run_at, or on every occurrence of cron in timezone. Runcrate checks schedules every 2 minutes, so a run starts within about 2 minutes of its time, as run_as through run_as_credential, in the environment it was created in. When many schedules are due at once, each workspace gets its turn.