PUT api/stacks/:stack_id
fails for git Stack when attempting to update Env
#11705
Labels
api/stacks/:stack_id
fails for git Stack when attempting to update Env
#11705
Before you start please confirm the following.
Problem Description
I've setup some automations to attempt to update
Env
for containers from a repository, and I'm getting the error when trying. This is withPUT /api/stacks/:stack_id
Specifically, I'm sending over a pretty minimal request:
I did see the UI uses
POST /api/stacks/:stack_id/git
with a full payload to update it, so I can try mucking with that in the interim.Expected Behavior
The Stack is able to update the env variables.
Actual Behavior
The API request fails with
{"message":"Invalid request payload","details":"Invalid stack file content"}
Steps to Reproduce
(See above)
Portainer logs or screenshots
No response
Portainer version
2.19.5
Portainer Edition
Business Edition (BE/EE) with 5NF / 3NF license
Platform and Version
Docker 24.0.7
OS and Architecture
Debian, AMD64
Browser
No response
What command did you use to deploy Portainer?
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: