Skip to Content
SeyloDocs

Set a service's volumes

POST
/api/v1/services.setVolumes

Replaces a service's named volumes (persistent folders mounted into the container). Volumes are matched by name: new names are created, missing ones are removed with their data. Applies on the next deploy. Services with volumes run on one node.

Needs services.update on the service (a grant on its project covers it). Available to MCP clients and the assistant, after a person approves the call.

Authorization

cookieseylo_session<token>

Request Body

application/json
  1. body
serviceId*string

Panel-issued id.

Match^[a-z0-9]{16}$
volumes*array<>
Itemsitems <= 20

Response Body

Success.

application/json
  1. response
volumes*array<>
Example Request
curl -X POST 'https://example.com/api/v1/services.setVolumes' \  -H 'Content-Type: application/json' \  -d '{  "serviceId": "string",  "volumes": [    {      "name": "string",      "mountPath": "string"    }  ]}'
Example Response
{  "volumes": [    {      "id": "string",      "name": "string",      "mountPath": "string",      "kind": "volume",      "readOnly": true,      "sharedWith": [        {          "id": "string",          "name": "string"        }      ]    }  ]}