fix: register task pause/resume routes under /api/v2 (#22544) by EhabY · Pull Request #22550 · coder/coder

@EhabY

The pause/resume endpoints were only registered under /api/experimental
but the frontend and Go SDK were calling /api/v2, resulting in 404s.
Register the routes in the v2 group, update the SDK client paths, and
fix swagger annotations (Accept → Produce) since these POST endpoints
have no request body.

(cherry picked from commit 9d2aed8)

@EhabY self-assigned this

Mar 3, 2026

@EhabY EhabY mentioned this pull request

Mar 3, 2026

matifali

david-fraley