portainer_stack_update
Update an existing Docker stack with optional new compose content. Redeploy to apply configuration changes.
Instructions
Update an existing stack, optionally with new compose content.
Args: stack_id: The ID of the stack to update compose_content: New Docker Compose content (YAML). If omitted, redeploys existing. endpoint_id: Endpoint ID (uses default if omitted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack_id | Yes | ||
| compose_content | No | ||
| endpoint_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |