The Managed Entries API provides endpoints to create, list, retrieve, update, and delete cron entries that the platform manages on behalf of a system user. Each managed entry pairs a cron schedule with a shell command, supports optional expiration and human-readable metadata, and tracks creation and update timestamps. Use these endpoints when you need programmatic control over scheduled jobs for a specific system user on the host.
GET /users/{user}/entries
Returns a paginated list of crontab entries for the given system user. The response includes both managed entries (with schedule, command, and metadata) and raw crontab lines that exist outside of managed tracking.
Name In Type Required Description userpath string Yes System username pagequery integer No Page number (1-based) limitquery integer No Items per page (max 200)
"id" : " a1b2c3d4-e5f6-7890-abcd-ef1234567890 " ,
"comment" : " Runs the daily backup script " ,
"schedule_human" : " At 02:00 AM, every day " ,
"command" : " /usr/local/bin/backup.sh " ,
"created_at" : " 2024-11-01T10:30:00Z " ,
"updated_at" : " 2024-11-15T14:22:00Z "
"line" : " */15 * * * * /usr/local/bin/healthcheck.sh "
"message" : " Invalid user " ,
Error Code Title Description Resolution INVALID_USERInvalid user User parameter failed validation Provide a valid system username INVALID_COMMENTInvalid comment Comment is empty, too long, or contains newlines Provide a short single-line comment INVALID_SCHEDULEInvalid schedule Schedule is not a valid cron expression Use a standard 5-field cron expression or @daily style macros INVALID_COMMANDInvalid command Command field is empty or contains invalid characters Provide a command without newlines INVALID_PAGINATIONInvalid pagination Page or limit is out of range Use page ≥ 1 and limit between 1 and 200
"code" : " USER_NOT_FOUND " ,
"message" : " User not found " ,
Error Code Title Description Resolution USER_NOT_FOUNDUser not found The requested system user does not exist Create the user or choose an existing username ENTRY_NOT_FOUNDEntry not found No managed entry with the provided id exists List entries and retry with a valid id
"message" : " Internal server error " ,
Error Code Title Description Resolution BACKEND_ERRORBackend error Failed to read or write system crontab Check crontab availability and permissions
for await ( const entry of client . cron . entries . listIterator ({ user: " deploy " })) {
curl -X GET " https://api.hoody.com/api/cron/entries/users/deploy/entries?page=1&limit=50 "
GET /users/{user}/entries/{id}
Returns the details of a single managed cron entry for the given system user.
Name In Type Required Description userpath string Yes System username idpath string Yes Managed entry id
"id" : " a1b2c3d4-e5f6-7890-abcd-ef1234567890 " ,
"comment" : " Runs the daily backup script " ,
"schedule_human" : " At 02:00 AM, every day " ,
"command" : " /usr/local/bin/backup.sh " ,
"created_at" : " 2024-11-01T10:30:00Z " ,
"updated_at" : " 2024-11-15T14:22:00Z "
"message" : " Invalid user " ,
Error Code Title Description Resolution INVALID_USERInvalid user User parameter failed validation Provide a valid system username INVALID_COMMENTInvalid comment Comment is empty, too long, or contains newlines Provide a short single-line comment INVALID_SCHEDULEInvalid schedule Schedule is not a valid cron expression Use a standard 5-field cron expression or @daily style macros INVALID_COMMANDInvalid command Command field is empty or contains invalid characters Provide a command without newlines INVALID_PAGINATIONInvalid pagination Page or limit is out of range Use page ≥ 1 and limit between 1 and 200
"code" : " ENTRY_NOT_FOUND " ,
"message" : " Entry not found " ,
Error Code Title Description Resolution USER_NOT_FOUNDUser not found The requested system user does not exist Create the user or choose an existing username ENTRY_NOT_FOUNDEntry not found No managed entry with the provided id exists List entries and retry with a valid id
"message" : " Internal server error " ,
Error Code Title Description Resolution BACKEND_ERRORBackend error Failed to read or write system crontab Check crontab availability and permissions
const entry = await client . cron . entries . get ( {
id: " a1b2c3d4-e5f6-7890-abcd-ef1234567890 "
curl -X GET " https://api.hoody.com/api/cron/entries/users/deploy/entries/a1b2c3d4-e5f6-7890-abcd-ef1234567890 "
POST /users/{user}/entries
Creates a new managed cron entry for the given system user. The endpoint requires a JSON request body describing the schedule and command to run.
Name In Type Required Description userpath string Yes System username
"id" : " a1b2c3d4-e5f6-7890-abcd-ef1234567890 " ,
"comment" : " Runs the daily backup script " ,
"schedule_human" : " At 02:00 AM, every day " ,
"command" : " /usr/local/bin/backup.sh " ,
"created_at" : " 2024-11-01T10:30:00Z " ,
"updated_at" : " 2024-11-01T10:30:00Z "
"code" : " INVALID_SCHEDULE " ,
"message" : " Invalid schedule " ,
Error Code Title Description Resolution INVALID_USERInvalid user User parameter failed validation Provide a valid system username INVALID_COMMENTInvalid comment Comment is empty, too long, or contains newlines Provide a short single-line comment INVALID_SCHEDULEInvalid schedule Schedule is not a valid cron expression Use a standard 5-field cron expression or @daily style macros INVALID_COMMANDInvalid command Command field is empty or contains invalid characters Provide a command without newlines INVALID_PAGINATIONInvalid pagination Page or limit is out of range Use page ≥ 1 and limit between 1 and 200
"code" : " USER_NOT_FOUND " ,
"message" : " User not found " ,
Error Code Title Description Resolution USER_NOT_FOUNDUser not found The requested system user does not exist Create the user or choose an existing username ENTRY_NOT_FOUNDEntry not found No managed entry with the provided id exists List entries and retry with a valid id
"message" : " Internal server error " ,
Error Code Title Description Resolution BACKEND_ERRORBackend error Failed to read or write system crontab Check crontab availability and permissions
const entry = await client . cron . entries . create ( {
command: " /usr/local/bin/backup.sh "
curl -X POST " https://api.hoody.com/api/cron/entries/users/deploy/entries " \
-H " Content-Type: application/json " \
"command": "/usr/local/bin/backup.sh"
PATCH /users/{user}/entries/{id}
Updates an existing managed cron entry for the given system user. Only the fields included in the request body are modified; omitted fields are left unchanged.
Name In Type Required Description userpath string Yes System username idpath string Yes Managed entry id
"id" : " a1b2c3d4-e5f6-7890-abcd-ef1234567890 " ,
"comment" : " Runs the daily backup script " ,
"schedule_human" : " At 02:00 AM, every day " ,
"command" : " /usr/local/bin/backup.sh " ,
"created_at" : " 2024-11-01T10:30:00Z " ,
"updated_at" : " 2024-11-15T14:22:00Z "
"code" : " INVALID_SCHEDULE " ,
"message" : " Invalid schedule " ,
Error Code Title Description Resolution INVALID_USERInvalid user User parameter failed validation Provide a valid system username INVALID_COMMENTInvalid comment Comment is empty, too long, or contains newlines Provide a short single-line comment INVALID_SCHEDULEInvalid schedule Schedule is not a valid cron expression Use a standard 5-field cron expression or @daily style macros INVALID_COMMANDInvalid command Command field is empty or contains invalid characters Provide a command without newlines INVALID_PAGINATIONInvalid pagination Page or limit is out of range Use page ≥ 1 and limit between 1 and 200
"code" : " ENTRY_NOT_FOUND " ,
"message" : " Entry not found " ,
Error Code Title Description Resolution USER_NOT_FOUNDUser not found The requested system user does not exist Create the user or choose an existing username ENTRY_NOT_FOUNDEntry not found No managed entry with the provided id exists List entries and retry with a valid id
"message" : " Internal server error " ,
Error Code Title Description Resolution BACKEND_ERRORBackend error Failed to read or write system crontab Check crontab availability and permissions
const entry = await client . cron . entries . update ( {
id: " a1b2c3d4-e5f6-7890-abcd-ef1234567890 " ,
curl -X PATCH " https://api.hoody.com/api/cron/entries/users/deploy/entries/a1b2c3d4-e5f6-7890-abcd-ef1234567890 " \
-H " Content-Type: application/json " \
DELETE /users/{user}/entries/{id}
Deletes a managed cron entry for the given system user. The underlying crontab is rewritten to remove the entry; raw crontab lines are not affected.
Name In Type Required Description userpath string Yes System username idpath string Yes Managed entry id
"message" : " Invalid user " ,
Error Code Title Description Resolution INVALID_USERInvalid user User parameter failed validation Provide a valid system username INVALID_COMMENTInvalid comment Comment is empty, too long, or contains newlines Provide a short single-line comment INVALID_SCHEDULEInvalid schedule Schedule is not a valid cron expression Use a standard 5-field cron expression or @daily style macros INVALID_COMMANDInvalid command Command field is empty or contains invalid characters Provide a command without newlines INVALID_PAGINATIONInvalid pagination Page or limit is out of range Use page ≥ 1 and limit between 1 and 200
"code" : " ENTRY_NOT_FOUND " ,
"message" : " Entry not found " ,
Error Code Title Description Resolution USER_NOT_FOUNDUser not found The requested system user does not exist Create the user or choose an existing username ENTRY_NOT_FOUNDEntry not found No managed entry with the provided id exists List entries and retry with a valid id
"message" : " Internal server error " ,
Error Code Title Description Resolution BACKEND_ERRORBackend error Failed to read or write system crontab Check crontab availability and permissions
const result = await client . cron . entries . delete ( {
id: " a1b2c3d4-e5f6-7890-abcd-ef1234567890 "
curl -X DELETE " https://api.hoody.com/api/cron/entries/users/deploy/entries/a1b2c3d4-e5f6-7890-abcd-ef1234567890 "