Create a worker schedule
POST/api/workers/{workerId}/schedules
Schedule a worker instruction for a future or recurring run.
Create a worker schedule
curl https://v3.handinger.com/api/workers/$WORKER_ID/schedules \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $HANDINGER_API_KEY" \
-d '{
"input": "x",
"when": {
"date": "2019-12-27T18:11:19.117Z",
"type": "scheduled"
}
}'{
"id": "id",
"budget": "low",
"input": "input",
"nextRunAt": "2019-12-27T18:11:19.117Z",
"type": "scheduled"
}Returns Examples
{
"id": "id",
"budget": "low",
"input": "input",
"nextRunAt": "2019-12-27T18:11:19.117Z",
"type": "scheduled"
}