portainer_stack_update
Update an existing stack by specifying new Docker Compose content or redeploy the current configuration.
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 (derived from the stack itself 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 |