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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
projectId | query | string or null | no | Query parameter: project id. |
limit | query | integer | no | Page size. At most 1000. |
cursor | query | string or null | no | Opaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page. |
tenant_slug | query | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list lint finding decisions. | application/json LintFindingDecisionListResponse |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | query | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for upsert lint finding decision.
application/json—LintFindingDecisionUpsertRequest
Responses
| Status | Description | Body |
|---|---|---|
| 201 | Successful response for upsert lint finding decision. | application/json LintFindingDecisionOut |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
decision_id | path | string | yes | Path parameter identifying the decision id segment. |
tenant_slug | query | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for get lint finding decision. | application/json LintFindingDecisionOut |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
decision_id | path | string | yes | Path parameter identifying the decision id segment. |
limit | query | integer | no | Page size. At most 200. |
cursor | query | string or null | no | Opaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page. |
tenant_slug | query | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list lint finding decision events. | application/json array of LintFindingDecisionEventOut |
| 422 | Validation Error | application/json HTTPValidationError |
Schemas used
HTTPValidationError
Validation error response emitted when request data fails schema checks.
| Property | Type | Required | Description |
|---|---|---|---|
detail | array of ValidationError | no | Detail. |
LintFindingDecisionEventOut
One audit event for a finding decision (CLX-1.3, #4850).
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
decisionId | string | yes | Decision ID. |
beforeState | string or null | no | Before State. |
afterState | string | yes | After State. |
rationale | string or null | no | Rationale. |
expiresAt | string or null | no | Expires At. |
linkedTicket | string or null | no | Linked Ticket. |
policyVersionId | string or null | no | Policy Version ID. |
actorUserId | string or null | no | Actor User ID. |
actorLabel | string or null | no | Actor Label. |
createdAt | string or null | no | Created At. |
LintFindingDecisionListResponse
List of finding decisions (CLX-1.3, #4850).
| Property | Type | Required | Description |
|---|---|---|---|
decisions | array of LintFindingDecisionOut | no | Decisions. |
count | integer | no | Number of decisions in this page. |
hasMore | boolean | no | Whether another page exists. |
nextCursor | string or null | no | Pass as cursor to read the next page; null on the last page. |
LintFindingDecisionOut
One finding remediation / waiver decision (CLX-1.3, #4850).
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
tenantId | string | yes | Tenant ID. |
projectId | string or null | no | Project ID. |
sourceFingerprint | string | yes | Source Fingerprint. |
ruleId | string or null | no | Rule ID. |
state | string | yes | open | acknowledged | waiver_requested | waived | fixed | false_positive |
ownerUserId | string or null | no | Owner User ID. |
rationale | string or null | no | Rationale. |
linkedTicket | string or null | no | Linked Ticket. |
expiresAt | string or null | no | Expires At. |
policyVersionId | string or null | no | Policy Version ID. |
evidenceFingerprintAtDecision | string or null | no | Evidence Fingerprint At Decision. |
actorUserId | string or null | no | Actor User ID. |
actorLabel | string or null | no | Actor Label. |
createdAt | string or null | no | Created At. |
updatedAt | string or null | no | Updated At. |
LintFindingDecisionUpsertRequest
Create or update a finding decision / waiver (CLX-1.3, #4850).
| Property | Type | Required | Description |
|---|---|---|---|
sourceFingerprint | string | yes | Source Fingerprint. |
state | string | yes | open | acknowledged | waiver_requested | waived | fixed | false_positive |
projectId | string or null | no | Project ID. |
ruleId | string or null | no | Rule ID. |
ownerUserId | string or null | no | Owner User ID. |
rationale | string or null | no | Rationale. |
linkedTicket | string or null | no | Linked Ticket. |
expiresAt | string (date-time) or null | no | Required when state is waived. |
policyVersionId | string or null | no | Policy Version ID. |