Request cancellation of one queued or running Workspace UI build.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/admin/ui-project/builds/example/cancel"), Content = new StringContent("{ \"ExpectedRowVersion\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\" }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/admin/ui-project/builds/example/cancel';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"ExpectedRowVersion":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/workspace/admin/ui-project/builds/example/cancel \ --header 'Content-Type: application/json' \ --data '{ "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Request cancellation of one queued or running Workspace UI build.
object
Expected build concurrency token.
Examplegenerated
{ "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Request cancellation of one queued or running Workspace UI build.
object
Expected build concurrency token.
Examplegenerated
{ "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Request cancellation of one queued or running Workspace UI build.
object
Expected build concurrency token.
Examplegenerated
{ "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”OK
object
Workspace UI check or build history record.
object
Build identifier.
Workspace UI project identifier.
Source revision identifier.
Monotonic project build number.
Optional localization key for the current stage.
Progress from zero through one hundred.
Requesting user identifier.
Request timestamp.
Worker claim timestamp.
Claiming worker identifier.
Latest worker heartbeat.
Number of worker claims.
Execution start timestamp.
User that requested cancellation.
Cancellation request timestamp.
Completion timestamp.
Checksum of the generated build project.
Resolved build toolchain fingerprint.
Workspace UI host contract version used by the build.
Bounded structured diagnostics persisted for one Workspace UI check or build.
object
Diagnostics payload format version.
Content-derived compilation identity.
Canonical source checksum.
Host contract fingerprint used by compilation.
Permission catalog fingerprint used by compilation.
Structured compiler diagnostics.
One bounded diagnostic emitted by the Workspace UI compiler.
object
Stable compiler diagnostic code.
Invariant developer-facing diagnostic text.
Optional canonical source path.
Optional one-based start line.
Optional one-based start column.
Optional one-based end line.
Optional one-based end column.
Bounded error summary.
Concurrency token.
object
object
object
object
Example
{ "Data": { "Kind": 0, "Status": 0, "Stage": 0, "Diagnostics": { "Diagnostics": [ { "Severity": 0, "Stage": 0 } ] } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Workspace UI check or build history record.
object
Build identifier.
Workspace UI project identifier.
Source revision identifier.
Monotonic project build number.
Optional localization key for the current stage.
Progress from zero through one hundred.
Requesting user identifier.
Request timestamp.
Worker claim timestamp.
Claiming worker identifier.
Latest worker heartbeat.
Number of worker claims.
Execution start timestamp.
User that requested cancellation.
Cancellation request timestamp.
Completion timestamp.
Checksum of the generated build project.
Resolved build toolchain fingerprint.
Workspace UI host contract version used by the build.
Bounded structured diagnostics persisted for one Workspace UI check or build.
object
Diagnostics payload format version.
Content-derived compilation identity.
Canonical source checksum.
Host contract fingerprint used by compilation.
Permission catalog fingerprint used by compilation.
Structured compiler diagnostics.
One bounded diagnostic emitted by the Workspace UI compiler.
object
Stable compiler diagnostic code.
Invariant developer-facing diagnostic text.
Optional canonical source path.
Optional one-based start line.
Optional one-based start column.
Optional one-based end line.
Optional one-based end column.
Bounded error summary.
Concurrency token.
object
object
object
object
Example
{ "Data": { "Kind": 0, "Status": 0, "Stage": 0, "Diagnostics": { "Diagnostics": [ { "Severity": 0, "Stage": 0 } ] } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Workspace UI check or build history record.
object
Build identifier.
Workspace UI project identifier.
Source revision identifier.
Monotonic project build number.
Optional localization key for the current stage.
Progress from zero through one hundred.
Requesting user identifier.
Request timestamp.
Worker claim timestamp.
Claiming worker identifier.
Latest worker heartbeat.
Number of worker claims.
Execution start timestamp.
User that requested cancellation.
Cancellation request timestamp.
Completion timestamp.
Checksum of the generated build project.
Resolved build toolchain fingerprint.
Workspace UI host contract version used by the build.
Bounded structured diagnostics persisted for one Workspace UI check or build.
object
Diagnostics payload format version.
Content-derived compilation identity.
Canonical source checksum.
Host contract fingerprint used by compilation.
Permission catalog fingerprint used by compilation.
Structured compiler diagnostics.
One bounded diagnostic emitted by the Workspace UI compiler.
object
Stable compiler diagnostic code.
Invariant developer-facing diagnostic text.
Optional canonical source path.
Optional one-based start line.
Optional one-based start column.
Optional one-based end line.
Optional one-based end column.
Bounded error summary.
Concurrency token.
object
object
object
object
Example
{ "Data": { "Kind": 0, "Status": 0, "Stage": 0, "Diagnostics": { "Diagnostics": [ { "Severity": 0, "Stage": 0 } ] } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}