Create a Box
Creates a code-server workspace in a project on one node, with a persistent home volume. It joins the project network, so it reaches the project's services on that node by name.
Needs services.create on the project. Available to MCP clients and the assistant.
seylo_session<token>application/json- body
projectId*stringPanel-issued id.
^[a-z0-9]{16}$name*stringDNS-safe; the service's host name on the project network. Unique in its project.
^[a-z0-9]([a-z0-9-]*[a-z0-9])?$1 <= length <= 40nodeId*stringPanel-issued id.
^[a-z0-9]{16}$repository?string^https://length <= 500idleMinutes?integer0 <= value <= 1440Success.
application/json- response
serviceId*stringPanel-issued id.
^[a-z0-9]{16}$projectId*stringPanel-issued id.
^[a-z0-9]{16}$name*stringDNS-safe; the service's host name on the project network. Unique in its project.
^[a-z0-9]([a-z0-9-]*[a-z0-9])?$1 <= length <= 40nodeId*stringPanel-issued id.
^[a-z0-9]{16}$nodeName*stringstate*string|string|string|stringrepository*string|nullidleMinutes*integer0 <= value <= 1440lastUsedAt*|nullcreatedAt*stringdate-timecurl -X POST 'https://example.com/api/v1/boxes.create' \ -H 'Content-Type: application/json' \ -d '{ "projectId": "string", "name": "string", "nodeId": "string"}'{ "serviceId": "string", "projectId": "string", "name": "string", "nodeId": "string", "nodeName": "string", "state": "running", "repository": "string", "idleMinutes": 0, "lastUsedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z"}Change a backup schedule POST
Changes a schedule's destination, timing, retention or on/off state. Fields left out keep their value. Needs `backups.edit` on the service (a grant on its project covers it). Available to MCP clients and the assistant.
Get a Box GET
Returns a Box's node, state (running, starting, sleeping, stopped) and idle settings. Needs `services.view` on the service (a grant on its project covers it). Available to MCP clients and the assistant.