Stopping a workspace via API endpoints

I would like to know if stopping a workspace using Coder API is possible.
2 Replies
Codercord
Codercord4d ago
<#1363981120009404456>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Danielle
Danielle4d ago
https://coder.com/docs/reference/api/builds#create-workspace-build If you send a stop transition to this endpoint it will stop a workspace You can see a usage of this in the CLI source (https://github.com/coder/coder/blob/823d3ea64ee24c661872125b9494aaacc204e23b/cli/stop.go#L55-L63)

Did you find this page helpful?