Builds
Cancel workspace build
patch/api/v2/workspacebuilds/{workspacebuild}/cancel
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