Queue a Net Operation Project build or check for the working revision.
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/net-operation-project/builds"), Content = new StringContent("{ \"RevisionId\": \"example\", \"Kind\": 0 }") { 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/net-operation-project/builds';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"RevisionId":"example","Kind":0}'};
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/net-operation-project/builds \ --header 'Content-Type: application/json' \ --data '{ "RevisionId": "example", "Kind": 0 }'Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “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 payload to queue a Net Operation Project build or check.
object
Optional revision identifier; defaults to the working revision.
Request payload to queue a Net Operation Project build or check.
object
Optional revision identifier; defaults to the working revision.
Request payload to queue a Net Operation Project build or check.
object
Optional revision identifier; defaults to the working revision.
Responses
Section titled “Responses”OK
object
Net Operation Project build history record.
object
Build identifier.
Project identifier.
Source revision identifier.
Monotonic build number.
Localization key for current build stage.
Current progress percentage.
Requesting user identifier.
Build request timestamp.
Build start timestamp.
Build completion timestamp.
Worker that claimed the build.
Last worker heartbeat timestamp.
Number of worker attempts.
Optional generated project checksum.
Optional schema contract hash.
Optional structured diagnostics JSON.
Optional short error summary.
Concurrency token.
Safe structured diagnostics for a failed Net Operation Project build.
object
Stable machine-readable reason code.
Whether retrying can reasonably succeed without operator remediation.
Optional PostgreSQL SQLSTATE without SQL or parameter values.
Optional allow-listed publication target kind.
Optional safe logical target identifier.
Stable remediation instruction code.
object
object
object
object
Example
{ "Data": { "Kind": 0, "Status": 0, "Stage": 0, "Failure": { "Category": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Net Operation Project build history record.
object
Build identifier.
Project identifier.
Source revision identifier.
Monotonic build number.
Localization key for current build stage.
Current progress percentage.
Requesting user identifier.
Build request timestamp.
Build start timestamp.
Build completion timestamp.
Worker that claimed the build.
Last worker heartbeat timestamp.
Number of worker attempts.
Optional generated project checksum.
Optional schema contract hash.
Optional structured diagnostics JSON.
Optional short error summary.
Concurrency token.
Safe structured diagnostics for a failed Net Operation Project build.
object
Stable machine-readable reason code.
Whether retrying can reasonably succeed without operator remediation.
Optional PostgreSQL SQLSTATE without SQL or parameter values.
Optional allow-listed publication target kind.
Optional safe logical target identifier.
Stable remediation instruction code.
object
object
object
object
Example
{ "Data": { "Kind": 0, "Status": 0, "Stage": 0, "Failure": { "Category": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}