The refresh endpoint is missing a method for canceling an ongoing update.
https://snapcraft.io/docs/snapd-api#heading--changes-post
Bug watches keep track of this bug in other bug trackers.