GET /crontab
Returns a paginated list of every system user that has a crontab file, along with each user’s full crontab text.
Name In Type Required Description pagequery integer No Page number (1-based) limitquery integer No Items per page (max 200)
curl -X GET " https://acme-web01-cron-1.eu-west-1.containers.hoody.icu/crontab?page=1&limit=50 "
await client . cron . crontab . listGlobalIterator ({ page : 1 , limit : 50 })
" crontab " : " 0 5 * * * /usr/bin/backup.sh \n "
" crontab " : " @daily /opt/app/rotate-logs.sh \n "
" message " : " Internal server error "
Error Code Title Description Resolution BACKEND_ERRORBackend error Failed to read or write system crontab Check crontab availability and permissions
GET /users/{user}/crontab
Returns the raw crontab text for a single system user.
Name In Type Required Description userpath string Yes System username
curl -X GET " https://acme-web01-cron-1.eu-west-1.containers.hoody.icu/users/app/crontab "
await client . cron . crontab . get ( " app " )
" crontab " : " @daily /opt/app/rotate-logs.sh \n "
" 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
PUT /users/{user}/crontab
Replaces the user’s crontab with the provided text. The response includes the written crontab and a count of any expired entries that were removed during the replacement.
Name In Type Required Description userpath string Yes System username
Field Type Required Description crontabstring Yes Full crontab text to write for the user
curl -X PUT " https://acme-web01-cron-1.eu-west-1.containers.hoody.icu/users/app/crontab " \
-H " Content-Type: application/json " \
-d ' {"crontab":"@daily /opt/app/rotate-logs.sh\n"} '
await client . cron . crontab . put ( " app " , { crontab : " @daily /opt/app/rotate-logs.sh \n " })
" crontab " : " @daily /opt/app/rotate-logs.sh \n " ,
" 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
" code " : " PAYLOAD_TOO_LARGE " ,
" message " : " Payload too large "
" message " : " Internal server error "
Error Code Title Description Resolution BACKEND_ERRORBackend error Failed to read or write system crontab Check crontab availability and permissions