Update stack compose file
Changed onWrites the compose file that was opened. Send X-Compose-File with the basename from the matching GET. When that name no longer matches the file Sencho resolves, the response is 412 with code compose_source_changed and nothing is written. If-Match compares the file modification time; a mismatch is 412 with code stack_file_changed. When no compose file exists yet, the write creates compose.yaml. Requires stack:edit permission.
Request
- Base URLhttps://localhost:1852
- URLhttps://localhost:1852/api/stacks/{stackName}
- AuthHTTP bearer
Path parameters
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.
Headers
Target a specific node by ID. If omitted, the default node is used. Can also be passed as ?nodeId= query parameter.
Basename returned by the matching GET.
ETag from the matching GET.
Request body
Response
Stack saved.
Changes
- info
added the new optional
headerrequest parameterIf-Match - info
added the new optional
headerrequest parameterX-Compose-File - info
added the non-success response with the status
- info
added the non-success response with the status
- info
- info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status - info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status - info
removed the
ADMIRAL_REQUIREDenum value from theresponse property for the response status
- info