---
title: "Unshare a secret incident"
method: POST
path: "/v1/incidents/secrets/{incident_id}/unshare"
tags: ["Internal Secret Incidents"]
---

# Unshare a secret incident

`POST /v1/incidents/secrets/{incident_id}/unshare`

Unshare a secret incident by revoking its public link.

## Path parameters

- `incident_id` integer, required

## Response `204`

The public link was revoked successfully.

## Other responses

- `400` — Invalid data
- `401` — Invalid API key
- `409` — Data conflict
- `503` — API under maintenance

---

[API](https://skmtc.dev/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.dev/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gitguardian/apis/gitguardian-api/revisions/1193ff4a5c36?raw)
