Write a type into skipped files, so they become spec docs (REQ-001). One request takes every picked doc, so the order of the picks does not matter (#73).
const url = 'https://example.com/api/v1/skipped';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"items":[{"path":"example","profile":"example","link":{"kind":"example","target":"example"}}]}'};
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/skipped \ --header 'Content-Type: application/json' \ --data '{ "items": [ { "path": "example", "profile": "example", "link": { "kind": "example", "target": "example" } } ] }'Request Bodyrequired
Section titled “Request Bodyrequired”object
object
A link a person confirmed. target is the root-relative path of the doc it links to.
object
Examplegenerated
{ "items": [ { "path": "example", "profile": "example", "link": { "kind": "example", "target": "example" } } ]}Responses
Section titled “ Responses ”The new spec docs, in the order of the request.
object
One spec doc of a bundle, with its own profile, versions, review runs and verdict.
object
The bundle that holds the spec doc.
The profile of the spec doc.
Where a GitHub bundle comes from, and its draft (REQ-123).
object
The current version has changes that are not on GitHub.
GitHub changed after the draft started.
The path of the spec doc in its bundle.
object
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.
Why the latest run on the current version failed, when it failed.
The frontmatter keys the main doc does not name, and the values a review used for them (REQ-135). Absent when the doc names both.
object
The one thing the caller must do next on this bundle. Absent when nothing is open. The list carries the kind and the sentence; one bundle also carries the target.
object
What to do, in words, for a button label or a status line.
The key of the tour point to open.
Example
{ "items": [ { "source_kind": "local", "verdict": { "kind": "lint", "result": "build_ready", "stale_reason": "upstream_changed" }, "status": "draft", "next_action": { "kind": "waiver" } } ]}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"}