List crontabs

Retrieve a list of all cron jobs on a server.


GET/api/servers/{server}/crontabs

List all crontabs

This endpoint allows you to retrieve a paginated list of all cron jobs on a server.

Required scopes

Read cronjobs

Request

GET
/api/servers/{server}/crontabs
curl -G "https://ploi.io/api/servers/{server}/crontabs" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": [
    {
      "id": 1,
      "command": "/home/ploi/domain.com/php artisan schedule:run",
      "user": "ploi",
      "frequency": "* * * * *",
      "created_at": "2019-07-16 13:05:58"
    }
  ]
}