Skip to content
Hoody.com

These endpoints read and write the full crontab text for a single system user or for every user on a container. They exchange only the raw crontab string (and a user echo), which makes them the right choice when you want to inspect or replace the crontab file exactly as it lives on disk. If you need to operate on individual scheduled entries by id, comment, schedule, or command, use the managed-entry endpoints under /users/{user}/entries/{id} instead, which are documented on a separate page.

The base URL for every request on this page is:

https://{projectId}-{containerId}-cron-1.{server}.containers.hoody.com

Returns a paginated listing of the raw crontab text for every system user on the container.

NameInTypeRequiredDescription
pagequeryintegerNoPage number (1-based, default 1)
limitqueryintegerNoItems per page (default 50, max 200)

This endpoint takes no request body.

Terminal window
curl -X GET "https://{projectId}-{containerId}-cron-1.{server}.containers.hoody.com/api/v1/cron/crontab?page=1&limit=50" \
-H "Authorization: Bearer <token>"

Returns the current crontab text for a single system user, exactly as stored on disk.

NameInTypeRequiredDescription
userpathstringYesSystem username

This endpoint takes no request body.

Terminal window
curl -X GET "https://{projectId}-{containerId}-cron-1.{server}.containers.hoody.com/api/v1/cron/users/app/crontab" \
-H "Authorization: Bearer <token>"

Replaces the entire crontab file for a single system user with the supplied text. The previous crontab is overwritten.

NameInTypeRequiredDescription
userpathstringYesSystem username
NameTypeRequiredDescription
crontabstringYesThe full crontab text to write for the user
Terminal window
curl -X PUT "https://{projectId}-{containerId}-cron-1.{server}.containers.hoody.com/api/v1/cron/users/app/crontab" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"crontab": "# m h dom mon dow command\n0 * * * * /usr/local/bin/backup.sh\n"
}'