Set a service's resource limits
Sets memory limit and reservation, CPU weight and process limit. Every field is off (null) by default; there is no hard CPU cap. Applies on the next deploy.
Needs services.update 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}$memoryLimitBytes*|nullmemoryReservationBytes*|nullcpuWeight*|nullpidsLimit*|nullSuccess.
application/json- response
memoryLimitBytes*|nullmemoryReservationBytes*|nullcpuWeight*|nullpidsLimit*|nullcurl -X POST 'https://example.com/api/v1/services.setResources' \ -H 'Content-Type: application/json' \ -d '{ "serviceId": "string", "memoryLimitBytes": 6291456, "memoryReservationBytes": 0, "cpuWeight": 1, "pidsLimit": 16}'{ "memoryLimitBytes": 6291456, "memoryReservationBytes": 0, "cpuWeight": 1, "pidsLimit": 16}Set replicas per node POST
Sets on which nodes a service runs and how many replicas on each. Several nodes are load balanced through each node's edge. Services with volumes run on one node only (use services.move to change it). Deploys the change right away. Needs `services.scale` on the service (a grant on its project covers it). Available to MCP clients and the assistant.
Change where a service's code or image comes from POST
Switches a service to a git URL, a Docker image, an inline Dockerfile, uploads or no source. For GitHub repositories use github.connectRepo, which checks the App can read the repo. Applies on the next deploy. Needs `services.update` on the service (a grant on its project covers it). Available to MCP clients and the assistant.