Builds
Cancel workspace build
Changed onpatch/api/v2/workspacebuilds/{workspacebuild}/cancel
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/v2/workspacebuilds/{workspacebuild}/cancel
- AuthAPI key in header Coder-Session-Token
Path parameters
workspacebuildstring required
Workspace build ID
Query parameters
expect_status'running' | 'pending'
Expected status of the job. If expect_status is supplied, the request will be rejected with 412 Precondition Failed if the job doesn't match the state when performing the cancellation.
Response
OK
Changes
- info
endpoint added
- info