Save a project's shared variables
Replaces the project's shared variables (.env text). Shared variables cannot reference services. Services that use them get the new values on their next deploy or restart.
Needs env.edit on the project. Available to MCP clients and the assistant.
seylo_session<token>application/json- body
projectId*stringPanel-issued id.
^[a-z0-9]{16}$text*stringContents of a .env file.
length <= 262144expectedUpdatedAt?|nullSuccess.
application/json- response
updatedAt*stringdate-timediagnostics*array<>affectedServiceIds*array<>curl -X POST 'https://example.com/api/v1/env.setShared' \ -H 'Content-Type: application/json' \ -d '{ "projectId": "string", "text": "string"}'{ "updatedAt": "2019-08-24T14:15:22Z", "diagnostics": [ { "code": "invalid-line", "severity": "error", "message": "string", "detail": "string", "params": {}, "range": { "start": 0, "end": 0, "startLine": 1, "startColumn": 1, "endLine": 1, "endColumn": 1 }, "fixes": [ { "kind": "edit", "title": "string", "edits": [ { "range": { "start": 0, "end": 0, "startLine": 1, "startColumn": 1, "endLine": 1, "endColumn": 1 }, "text": "string" } ] } ] } ], "affectedServiceIds": [ "string" ]}Save a service's environment POST
Replaces the service's .env text. Syntax errors are refused; context problems (for example an internal address of a service on another node) are saved and returned as diagnostics. The new values apply on the next deploy or restart. Needs `env.edit` on the service (a grant on its project covers it). Available to MCP clients and the assistant.
Close a timed expose POST
Closes a timed expose now. Open connections are cut. Needs `exposures.edit` on the service (a grant on its project covers it). Available to MCP clients and the assistant.