Update a cron job
Changes a cron job's schedule, command, limits or enabled flag. Omitted fields keep their value; the node picks up the change at once.
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}$cronJobId*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.update' \ -H 'Content-Type: application/json' \ -d '{ "serviceId": "string", "cronJobId": "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"}List cron runs GET
Lists runs of a service's cron jobs newest first, optionally for one job. Page with the nextCursor of the previous call. Needs `services.view` on the service (a grant on its project covers it). Available to MCP clients and the assistant.
Get connection details GET
Returns the internal connection URL and, when exposure is on, the exposed URL, with passwords. Internal URLs only work for services of the project on the same node. Needs `databases.credentials` on the service (a grant on its project covers it). Available to MCP clients and the assistant.