Portainer · Schema
stacks.updateSwarmStackPayload
Container ManagementContainersDockerKubernetesKubernetes ManagementEnterprise IdentityGitOps
Properties
| Name | Type | Description |
|---|---|---|
| Env | array | A list of environment(endpoint) variables used during stack deployment |
| Prune | boolean | Prune services that are no longer referenced (only available for Swarm stacks) |
| PullImage | boolean | Deprecated(2.36): use RepullImageAndRedeploy instead for cleaner responsibility Force a pulling to current image with the original tag though the image is already the latest |
| RepullImageAndRedeploy | boolean | RepullImageAndRedeploy indicates whether to force repulling images and redeploying the stack |
| StackFileContent | string | New content of the Stack file |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/portainer/main/json-schema/portainer-stacks-update-swarm-stack-payload-schema.json",
"title": "stacks.updateSwarmStackPayload",
"x-generated": "2026-10-03",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/portainer-stacks-api-openapi.yml#/components/schemas/stacks.updateSwarmStackPayload",
"properties": {
"Env": {
"description": "A list of environment(endpoint) variables used during stack deployment",
"items": {
"$ref": "#/$defs/portainer.Pair"
},
"type": "array"
},
"Prune": {
"description": "Prune services that are no longer referenced (only available for Swarm stacks)",
"type": "boolean"
},
"PullImage": {
"description": "Deprecated(2.36): use RepullImageAndRedeploy instead for cleaner responsibility\nForce a pulling to current image with the original tag though the image is already the latest",
"type": "boolean"
},
"RepullImageAndRedeploy": {
"description": "RepullImageAndRedeploy indicates whether to force repulling images and redeploying the stack",
"type": "boolean"
},
"StackFileContent": {
"description": "New content of the Stack file",
"type": "string"
}
},
"type": "object",
"$defs": {
"portainer.Pair": {
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/portainer-stacks-update-swarm-stack-payload"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.