---
title: "Unassign a public secret incident"
method: POST
path: "/v1/public-incidents/secrets/{incident_id}/unassign"
tags: ["Public Secret Incidents"]
---

# Unassign a public secret incident

`POST /v1/public-incidents/secrets/{incident_id}/unassign`

Unassign a public secret incident from its current assignee.

## Path parameters

- `incident_id` integer, required

## Response `200`

Public Secret Incident Details

- object
  - `id` integer
  - `detector` object
    - `name` string, required
    - `display_name` string, required
    - `nature` string, required
    - `family` string
    - `category` string
    - `detector_group_name` string
    - `detector_group_display_name` string
  - `date` string, date-time
  - `secret_id` integer
  - `secret_hash` string
  - `hmsl_hash` string
  - `occurrences_count` integer
  - `status` 'IGNORED' | 'TRIGGERED' | 'ASSIGNED' | 'RESOLVED'
  - `triggered_at` string, date-time
  - `ignored_at` string, date-time, nullable
  - `ignore_reason` 'test_credential' | 'false_positive' | 'low_risk' | 'invalid' | 'ignore_actor' | 'ignore_secret', nullable — Comma-separated list of the reasons why the incident was ignored.
  - `ignorer_id` integer, nullable
  - `ignorer_api_token_id` string, uuid, nullable
  - `resolved_at` string, date-time, nullable
  - `resolver_id` integer, nullable
  - `resolver_api_token_id` string, uuid, nullable
  - `secret_revoked` boolean
  - `validity` 'valid' | 'invalid' | 'failed_to_check' | 'no_checker' | 'unknown'
  - `severity` 'critical' | 'high' | 'medium' | 'low' | 'info' | 'unknown'
  - `assignee_id` integer, nullable
  - `assignee_email` string, nullable
  - `share_url` string, nullable
  - `feedback_list` object[]
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `member_id` integer, nullable — Only if the feedback has been provided from the dashboard.
    - `email` string — Feedback author's e-mail address
    - `answers` union[]
      - union
        - object
          - `type` 'boolean' — The value's type for this field.
          - `field_ref` string — The field's unique reference.
          - `field_label` string — The field's name or question.
          - `boolean` boolean — The value provided for this field in the feedback.
        - object
          - `type` 'text' — The value's type for this field.
          - `field_ref` string — The field's unique reference.
          - `field_label` string — The field's name or question.
          - `text` string — The value provided for this field in the feedback.
  - `declarative_secret_status` 'revoked' | 'active' | 'test_credential' | 'false_positive' | 'low_risk'
  - `resolve_reason` 'revoked' | 'dmca_request' | 'source_deleted', nullable — Comma-separated list of the reasons why the incident was resolved.
  - `gitguardian_url` string
  - `tags` string[]
  - `custom_tags` object[]
    - `id` string, uuid
    - `key` string
    - `value` string, nullable
  - `risk_score` integer — Risk score of the incident, from 0 (low) to 100 (critical).
  - `severity_rule_id` integer, nullable — ID of the severity rule that set this incident's severity. Null if severity was not set by a rule or was manually overridden.
  - `incident_name` string — Human-readable name combining detector information
  - `is_vaulted` boolean, nullable — Indicates whether this secret is stored in a vault (NHI observability feature)

## Other responses

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

---

[API](https://skmtc.net/gitguardian/apis/gitguardian-api.md) · [All operations](https://skmtc.net/gitguardian/apis/gitguardian-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitguardian/gitguardian-api/revisions/511b067cdcb1/schema)
