Stacks
Update env file
Overwrites an environment file's content. Requires stack:edit permission.
put/api/stacks/{stackName}/env
Path parameters
stackNamestring required
Example:my-stack
Stack directory name. Must match ^[a-zA-Z0-9_-]+$ (alphanumeric characters, hyphens, and underscores only). Returns 400 Invalid stack name if the name contains path separators, dots, spaces, or other special characters.
Query parameters
filestring
Path to a specific env file to update.
Headers
x-node-idinteger
Example:1
Target a specific node by ID. If omitted, the default node is used. Can also be passed as ?nodeId= query parameter.
Request body
Response
Env file saved.