A stack webhook is more than a redeploy button. Query parameters let the caller steer what gets deployed.
curl -X POST "https://portainer.example.com:9443/api/stacks/webhooks/638e6967-ef77-4906-8af8-236800621360?tag=1.2.0"
curl -X POST "https://portainer.example.com:9443/api/stacks/webhooks/638e6967-ef77-4906-8af8-236800621360?pullimage=false"
Turn on Create a stack webhook in the stack editor to get the URL. A POST redeploys the stack with the latest image of the same tag, ?tag= deploys another tag, and pullimage=false redeploys without pulling images first.
Stack webhooks and the pullimage option are both Portainer Business Edition features. The call returns before the deployment is done, and the URL is the only secret, so treat it like a password.
Further reading: Portainer docs: Stack webhooks