Start a full review of the current version (REQ-020). Lint runs on its own on every save.
const url = 'https://example.com/api/v1/docs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/runs';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"stages":["rubric"]}'};
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/v1/docs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/runs \ --header 'Content-Type: application/json' \ --data '{ "stages": [ "rubric" ] }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The ID of one spec doc.
Request Body
Section titled “Request Body”object
The model stages to run. Absent means all. Lint and the verdict always run.
Responses
Section titled “ Responses ”The queued run. Follow its progress at /runs/{runId}/events.
object
USD, from the prices on the role assignments.
Steps answered from the cache (REQ-021).
Notes for the run report, such as “no search source configured” (REQ-034).
The verdict of the bundle’s latest completed run. It is stale when that run is not on the current version.
object
Lint means only the lint stage ran.
object
Checks in adoption mode (REQ-133).
Open MUST findings.
Open blocking threads. Any makes the verdict Not Build Ready (§8.6 rule 2).
The full review whose AI findings this verdict counts. For a full run, the run itself.
The version the AI review read, when it is older than this verdict’s version.
How many sections changed since the AI review read the doc.
Set when the verdict is stale because a linked bundle has a newer version than the run read (REQ-056).
With stale_reason upstream_changed, the linked spec docs that have a newer version than the run read.
object
The bundle that holds the spec doc.
Example
{ "kind": "lint", "status": "queued", "verdict": { "kind": "lint", "result": "build_ready", "stale_reason": "upstream_changed" }}default
Section titled “default”An error.
RFC 9457 problem details with a stable code.
object
A stable machine-readable error code.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}