Skip to main content

Lint decisions

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: lint-decisions · 4 operations

GET /v1/lint/decisions​

List Lint Finding Decisions

List finding remediation / waiver decisions for the tenant (CLX-1.3, #4850).

Most recently changed first, one page of at most limit decisions (1,000 at most); pass the page's nextCursor as cursor while hasMore is true (#7196).

Args: project_id: Narrow to one project's decisions plus the tenant-wide ones. limit: Page size. cursor: Where the page starts (nextCursor of the previous page). auth_data: The authenticated principal.

Returns: The page of decisions and whether another follows.

Raises: HTTPException: 400 for a malformed cursor.

Operation id: list_lint_finding_decisions_v1_lint_decisions_get

Parameters

NameInTypeRequiredDescription
projectIdquerystring or nullnoQuery parameter: project id.
limitqueryintegernoPage size. At most 1000.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list lint finding decisions.application/json LintFindingDecisionListResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/lint/decisions​

Upsert Lint Finding Decision

Create or update a finding decision / waiver (CLX-1.3, #4850; guarded by CLX-4.1, #4859).

Waived state requires non-empty rationale and an expiry timestamp. The transition is RBAC-guarded on the lint_findings resource: triage transitions need edit; approval-tier transitions (entering/leaving waived, resolving a waiver_requested row) need publish — the same rules the workspace bulk endpoint enforces, so bulk authorization can never be bypassed one decision at a time.

Operation id: upsert_lint_finding_decision_v1_lint_decisions_post

Parameters

NameInTypeRequiredDescription
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for upsert lint finding decision.

Responses

StatusDescriptionBody
201Successful response for upsert lint finding decision.application/json LintFindingDecisionOut
422Validation Errorapplication/json HTTPValidationError

GET /v1/lint/decisions/{decision_id}​

Get Lint Finding Decision

Fetch one finding decision by id (CLX-1.3, #4850).

Operation id: get_lint_finding_decision_v1_lint_decisions__decision_id__get

Parameters

NameInTypeRequiredDescription
decision_idpathstringyesPath parameter identifying the decision id segment.
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for get lint finding decision.application/json LintFindingDecisionOut
422Validation Errorapplication/json HTTPValidationError

GET /v1/lint/decisions/{decision_id}/events​

List Lint Finding Decision Events

Audit history for a finding decision, oldest first (CLX-1.3, #4850).

The body is a JSON array of at most limit events (200 at most). The X-Has-More response header says whether more exist and X-Next-Cursor carries the cursor of the next page (#7196).

Args: decision_id: The decision whose history is read. response: The outgoing response (paging headers are set on it). limit: Page size. cursor: Where the page starts (the previous page's X-Next-Cursor). auth_data: The authenticated principal.

Returns: One page of events.

Raises: HTTPException: 400 for a malformed cursor; 404 when the decision is unknown.

Operation id: list_lint_finding_decision_events_v1_lint_decisions__decision_id__events_get

Parameters

NameInTypeRequiredDescription
decision_idpathstringyesPath parameter identifying the decision id segment.
limitqueryintegernoPage size. At most 200.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
tenant_slugquerystringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list lint finding decision events.application/json array of LintFindingDecisionEventOut
422Validation Errorapplication/json HTTPValidationError

Schemas used​

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

LintFindingDecisionEventOut​

One audit event for a finding decision (CLX-1.3, #4850).

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
decisionIdstringyesDecision ID.
beforeStatestring or nullnoBefore State.
afterStatestringyesAfter State.
rationalestring or nullnoRationale.
expiresAtstring or nullnoExpires At.
linkedTicketstring or nullnoLinked Ticket.
policyVersionIdstring or nullnoPolicy Version ID.
actorUserIdstring or nullnoActor User ID.
actorLabelstring or nullnoActor Label.
createdAtstring or nullnoCreated At.

LintFindingDecisionListResponse​

List of finding decisions (CLX-1.3, #4850).

PropertyTypeRequiredDescription
decisionsarray of LintFindingDecisionOutnoDecisions.
countintegernoNumber of decisions in this page.
hasMorebooleannoWhether another page exists.
nextCursorstring or nullnoPass as cursor to read the next page; null on the last page.

LintFindingDecisionOut​

One finding remediation / waiver decision (CLX-1.3, #4850).

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
tenantIdstringyesTenant ID.
projectIdstring or nullnoProject ID.
sourceFingerprintstringyesSource Fingerprint.
ruleIdstring or nullnoRule ID.
statestringyesopen | acknowledged | waiver_requested | waived | fixed | false_positive
ownerUserIdstring or nullnoOwner User ID.
rationalestring or nullnoRationale.
linkedTicketstring or nullnoLinked Ticket.
expiresAtstring or nullnoExpires At.
policyVersionIdstring or nullnoPolicy Version ID.
evidenceFingerprintAtDecisionstring or nullnoEvidence Fingerprint At Decision.
actorUserIdstring or nullnoActor User ID.
actorLabelstring or nullnoActor Label.
createdAtstring or nullnoCreated At.
updatedAtstring or nullnoUpdated At.

LintFindingDecisionUpsertRequest​

Create or update a finding decision / waiver (CLX-1.3, #4850).

PropertyTypeRequiredDescription
sourceFingerprintstringyesSource Fingerprint.
statestringyesopen | acknowledged | waiver_requested | waived | fixed | false_positive
projectIdstring or nullnoProject ID.
ruleIdstring or nullnoRule ID.
ownerUserIdstring or nullnoOwner User ID.
rationalestring or nullnoRationale.
linkedTicketstring or nullnoLinked Ticket.
expiresAtstring (date-time) or nullnoRequired when state is waived.
policyVersionIdstring or nullnoPolicy Version ID.