Apply the section rewrites the author accepted, as one version.
POST
/runs/{runId}/fixes/accept
const url = 'https://example.com/api/v1/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/fixes/accept';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"finding_ids":["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/v1/runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/fixes/accept \ --header 'Content-Type: application/json' \ --data '{ "finding_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”runId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
finding_ids
required
The finding_id of each section rewrite the author accepted.
Array<string>
Examplegenerated
{ "finding_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ]}Responses
Section titled “ Responses ”The new version, and what lint says about the check in those sections.
Media typeapplication/json
object
version
object
id
required
string format: uuid
number
required
integer format: int64
created_by
required
string
message
required
string
created_at
required
string format: date-time
changed
required
False when the rewrites left the doc unchanged, so no version was created.
boolean
sections
required
How many section rewrites were applied.
integer
left
required
How many reword findings of those checks lint still gives in those sections.
integer
Examplegenerated
{ "version": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "number": 1, "created_by": "example", "message": "example", "created_at": "2026-04-15T12:00:00Z" }, "changed": true, "sections": 1, "left": 1}default
Section titled “default”An error.
Media typeapplication/problem+json
RFC 9457 problem details with a stable code.
object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required
A stable machine-readable error code.
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}