Get crontab

Retrieve details of a specific cron job.


GET/api/servers/{server}/crontabs/{id}

Get a crontab

This endpoint allows you to retrieve a cron job by providing its ID.

Required scopes

Read cronjobs

Request

GET
/api/servers/{server}/crontabs/{id}
curl -G "https://ploi.io/api/servers/{server}/crontabs/{id}" \
  -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"
  }
}