fix: register task pause/resume routes under /api/v2 (#22544)

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.
This commit is contained in:
Ehab Younes
2026-03-03 16:34:33 +03:00
committed by GitHub
parent e2a3b99d3a
commit 9d2aed88c4
6 changed files with 434 additions and 11 deletions
+2
View File
@@ -1794,6 +1794,8 @@ func New(options *Options) *API {
r.Patch("/input", api.taskUpdateInput)
r.Post("/send", api.taskSend)
r.Get("/logs", api.taskLogs)
r.Post("/pause", api.pauseTask)
r.Post("/resume", api.resumeTask)
})
})
})