---
title: "Re-prove that a patch closes the original finding obligation"
method: POST
path: "/v1/repositories/{repository_id}/security-analyses/closure"
tags: ["Repository Intelligence"]
---

# Re-prove that a patch closes the original finding obligation

`POST /v1/repositories/{repository_id}/security-analyses/closure`

## Request

- Base URL: `https://api.algenta.ai`
- URL: `https://api.algenta.ai/v1/repositories/{repository_id}/security-analyses/closure`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Path parameters

- `repository_id` string, uuid, required

## Request body

- SecurityAnalysisClosureRequest
  - `snapshot_id` string, required
  - `canonical_finding_id` string, required
  - `patch_digest` string, nullable

## Response `200`

Successful Response

- SecurityAnalysisClosureResponse
  - `closure_status` 'closed' | 'open' | 'unknown', required
  - `alternate_path_found` boolean
  - `new_blocking_findings` string[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codna/apis/algenta-api.md) · [All operations](https://skmtc.dev/codna/apis/algenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codna/apis/algenta-api/revisions/35d30f84a5df?raw)
