Create a cron job
Adds a scheduled command to a service. It runs in a one-off container from the service's image, with its env and volumes.
Needs services.cron on the service (a grant on its project covers it). Available to MCP clients and the assistant.
seylo_session<token>application/json- body
serviceId*stringPanel-issued id.
^[a-z0-9]{16}$name*string1 <= length <= 60schedule*stringFive-field cron expression or @hourly, @daily, @weekly, @monthly, @yearly.
^(@(hourly|daily|weekly|monthly|yearly)|(\S+\s+){4}\S+)$1 <= length <= 120timeZone?string^[A-Za-z_]+(/[A-Za-z0-9_+-]+)*$1 <= length <= 64command*stringRun as sh -c .
1 <= length <= 4096timeoutSeconds?integer1 <= value <= 86400concurrency?||When a run is still going at the next tick: skip the new one, run both, or stop the old one.
enabled?booleanSuccess.
application/json- response
id*stringPanel-issued id.
^[a-z0-9]{16}$serviceId*stringPanel-issued id.
^[a-z0-9]{16}$name*string1 <= length <= 60schedule*stringFive-field cron expression or @hourly, @daily, @weekly, @monthly, @yearly.
^(@(hourly|daily|weekly|monthly|yearly)|(\S+\s+){4}\S+)$1 <= length <= 120timeZone*string^[A-Za-z_]+(/[A-Za-z0-9_+-]+)*$1 <= length <= 64command*stringRun as sh -c .
1 <= length <= 4096timeoutSeconds*integer1 <= valueconcurrency*||When a run is still going at the next tick: skip the new one, run both, or stop the old one.
enabled*booleannextRunAt*|nulllastRun*|nullcreatedAt*stringdate-timeupdatedAt*stringdate-timecurl -X POST 'https://example.com/api/v1/cron.create' \ -H 'Content-Type: application/json' \ -d '{ "serviceId": "string", "name": "string", "schedule": "string", "command": "string"}'{ "id": "string", "serviceId": "string", "name": "string", "schedule": "string", "timeZone": "string", "command": "string", "timeoutSeconds": 1, "concurrency": "forbid", "enabled": true, "nextRunAt": "2019-08-24T14:15:22Z", "lastRun": { "id": "string", "cronJobId": "string", "serviceId": "string", "nodeId": "string", "result": "running", "manual": true, "exitCode": 0, "startedAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z", "durationMs": 0 }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}Open a shell in a service POST
Returns a one-minute ticket for a WebSocket running a new shell (bash, else sh) inside a running container of the service. For databases, databaseClient opens the engine's client already logged in. Needs `terminals.shell` on the service (a grant on its project covers it). Not available to MCP clients or the assistant.
Delete a cron job POST
Deletes a cron job and its run history. A run in progress is stopped. Needs `services.cron` on the service (a grant on its project covers it). Available to MCP clients and the assistant, after a person approves the call.