Skip to Content
SeyloDocs

Set a service's resource limits

POST
/api/v1/services.setResources

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.

Authorization

cookieseylo_session<token>

Request Body

application/json
  1. body
serviceId*string

Panel-issued id.

Match^[a-z0-9]{16}$
memoryLimitBytes*|null
memoryReservationBytes*|null
cpuWeight*|null
pidsLimit*|null

Response Body

Success.

application/json
  1. response
memoryLimitBytes*|null
memoryReservationBytes*|null
cpuWeight*|null
pidsLimit*|null
Example Request
curl -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}'
Example Response
{  "memoryLimitBytes": 6291456,  "memoryReservationBytes": 0,  "cpuWeight": 1,  "pidsLimit": 16}