findings

Close a finding (mark fixed or dismiss as not an issue)

Closes a finding from CI/CD or an agent: mark it 'fixed' or dismiss it as not an issue ('dismissed'). Every close requires an explanation, and a dismissal also requires a category (reason_code). Workspace-scoped: a finding from another workspace resolves to 404.

patch/api/v1/findings/{finding_id}/close

Request

  • Base URL: https://api.enokilabs.ai
  • URL: https://api.enokilabs.ai/api/v1/findings/{finding_id}/close
  • Auth: none declared

Path parameters

finding_idstring required

Headers

Authorizationstring nullable

Bearer token with API key

Request body

status'fixed' | 'dismissed' required

Close action: 'fixed' (resolved) or 'dismissed' (not an issue).

explanationstring required

Why the finding is being closed. Required for every close: recorded as the fix description when 'fixed' and as the dismissal rationale when 'dismissed'. Maximum 4000 characters.

reason_code'data_is_public' | 'authenticated_users_only' | 'working_as_designed' | 'mitigated_elsewhere' | 'accepted_risk' | 'false_positive' | 'other' nullable

Dismissal category. Required when status is 'dismissed'; ignored otherwise. Allowed values: data_is_public, authenticated_users_only, working_as_designed, mitigated_elsewhere, accepted_risk, false_positive, other.

Response

Successful Response

finding_idstring required
lens'security' | 'safety' | 'quality' | 'policy' required

The kind of testing a finding came from.

categorystring required
severity'critical' | 'high' | 'medium' | 'low' required

Business-impact severity levels, ordered from most to least severe.

descriptionstring required
expected_behaviorstring required
statusstring required
created_atstring required

Changes

No recorded changes to this operation across all 1 revision of this API.