Skip to content
Hoody.com

The Managed Entries API exposes CRUD operations for cron jobs that Hoody tracks on behalf of a system user. Each entry stores a schedule, command, and optional metadata in the user’s crontab. List responses include both managed entries created through this API and raw crontab lines preserved from the user’s existing crontab. Use these endpoints to inspect, create, modify, disable, or remove scheduled tasks that the platform owns.

All endpoints are scoped to a single system user and resolve to the per-container cron service. Requests must be authenticated with the container token.

GET /users/{user}/entries

Returns the crontab entries for the given system user. Managed entries are returned with full metadata; raw lines from the user’s crontab are returned as-is. Results are paginated.

NameInTypeRequiredDescription
userpathstringYesSystem username
pagequeryintegerNoPage number (1-based)
limitqueryintegerNoItems per page (max 200)
Terminal window
curl -X GET "https://{projectId}-{containerId}-cron-1.{server}.containers.hoody.com/users/app/entries?page=1&limit=50" \
-H "Authorization: Bearer <token>"

POST /users/{user}/entries

Creates a new managed cron entry in the user’s crontab.

NameInTypeRequiredDescription
userpathstringYesSystem username

This endpoint requires a request body conforming to the cron_CreateEntryRequest schema.

Terminal window
curl -X POST "https://{projectId}-{containerId}-cron-1.{server}.containers.hoody.com/users/app/entries" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"schedule": "0 */6 * * *",
"command": "/usr/local/bin/cleanup.sh",
"name": "temp-cleanup",
"comment": "Clean up temp files every 6 hours",
"enabled": true
}'

GET /users/{user}/entries/{id}

Returns a single managed cron entry by id.

NameInTypeRequiredDescription
userpathstringYesSystem username
idpathstringYesManaged entry id
Terminal window
curl -X GET "https://{projectId}-{containerId}-cron-1.{server}.containers.hoody.com/users/app/entries/8b3a2c1e-9f7d-4d2a-9e6b-1c4f8a7b2d3e" \
-H "Authorization: Bearer <token>"

PATCH /users/{user}/entries/{id}

Partially updates a managed cron entry. Only the fields included in the request body are modified; omitted fields are left unchanged.

NameInTypeRequiredDescription
userpathstringYesSystem username
idpathstringYesManaged entry id

This endpoint requires a request body conforming to the cron_UpdateEntryRequest schema.

Terminal window
curl -X PATCH "https://{projectId}-{containerId}-cron-1.{server}.containers.hoody.com/users/app/entries/8b3a2c1e-9f7d-4d2a-9e6b-1c4f8a7b2d3e" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"enabled": false,
"comment": "Disabled during maintenance window"
}'

DELETE /users/{user}/entries/{id}

Removes a managed cron entry from the user’s crontab.

NameInTypeRequiredDescription
userpathstringYesSystem username
idpathstringYesManaged entry id
Terminal window
curl -X DELETE "https://{projectId}-{containerId}-cron-1.{server}.containers.hoody.com/users/app/entries/8b3a2c1e-9f7d-4d2a-9e6b-1c4f8a7b2d3e" \
-H "Authorization: Bearer <token>"