This API v3 documentation is currently still on progress. For any issue, please contact support@runcloud.io
Authorization: Bearer ********************
{
"label": "my first job updated",
"username": "root",
"command": "/bin/bash /root/clearitem.sh",
"minute": "*",
"hour": "*/2",
"dayOfMonth": "*",
"month": "*",
"dayOfWeek": "*"
}
curl --location -g --request PATCH 'https://manage.runcloud.io/api/v3/servers/{{serverId}}/cronjobs/{{cronJobId}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"label": "my first job updated",
"username": "root",
"command": "/bin/bash /root/clearitem.sh",
"minute": "*",
"hour": "*/2",
"dayOfMonth": "*",
"month": "*",
"dayOfWeek": "*"
}'
{
"message": "cron job my first job updated via api successfully updated."
}