cURL
curl --request POST \ --url http://localhost:3000/api/v1/jobs \ --header 'Content-Type: application/json' \ --cookie nut-session= \ --data ' { "name": "<string>", "schedule": "<string>", "task": {}, "description": "<string>", "enabled": true } '
{ "success": true, "data": { "job": { "id": "<string>", "name": "<string>", "schedule": "<string>", "description": "<string>", "task": {}, "enabled": true, "lastRun": "2023-11-07T05:31:56Z", "nextRun": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z" } } }
Create a new scheduled job
Session cookie authentication
Job name
Cron expression
Task configuration
Job description
Job created
Show child attributes
Job ID