Ploi API
Ploi API

Create crontab

Creates a new crontab in your server

POST api/servers/{server}/crontabs

Required scopes

Create cronjobs

Parameters

Parameter Type Status Description
user string required Maximum: 255
command string required Maximum: 255
frequency string required Maximum: 50

Example request:

curl -X POST "https://ploi.io/api/servers/{server}/crontabs" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data '{"user":"ploi", "command":"/home/ploi/domain.com/php artisan schedule:run", "frequency":"* * * * *"}'