cURL
curl --request POST \ --url https://api.erna.ai/v1/schedules \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "instructions": [ "<string>" ], "timeHorizon": { "start": "2023-12-25", "end": "2023-12-25" }, "employees": [ { "id": "<string>", "name": "<string>", "roleIds": [ "<string>" ], "skillIds": [ "<string>" ] } ], "roles": [ { "id": "<string>", "name": "<string>" } ] } '
{ "jobId": "<string>", "status": "pending", "progress": "generating" }
Create a schedule from natural-language instructions. Returns a job ID to poll for the result. The schedule is generated asynchronously using AI-powered code generation and constraint solving.
OAuth2 access token or API key
1
Show child attributes
Job created. Poll GET /v1/schedules/jobs/{jobId} for the result.
pending
generating
validating
running