This API v2 documentation is currently still on progress. For any issue, please contact support@runcloud.io
Authorization: Bearer ********************
{
"label": "my-first-job",
"username": "runcloud",
"numprocs": 5,
"autoStart": true,
"autoRestart": true,
"binary": "/RunCloud/Packages/php74rc/bin/php",
"command": "/home/runcloud/queue.php"
}
curl --location -g --request POST 'https://manage.runcloud.io/api/v2/servers/{{serverId}}/supervisors' \
--header 'Content-Type: application/json' \
--data-raw '{
"label": "my-first-job",
"username": "runcloud",
"numprocs": 5,
"autoStart": true,
"autoRestart": true,
"binary": "/RunCloud/Packages/php74rc/bin/php",
"command": "/home/runcloud/queue.php"
}'
{
"id": 4,
"label": "my-first2-job",
"username": "runcloud",
"numprocs": 5,
"autoStart": false,
"autoRestart": false,
"directory": "/",
"command": " /home/runcloud/queue.php",
"created_at": "2024-07-24 08:32:03"
}