---
title: "Update a public secret incident note"
method: PATCH
path: "/v1/public-incidents/secrets/{incident_id}/notes/{note_id}"
tags: ["Public Secret Incident Notes"]
---

# Update a public secret incident note

`PATCH /v1/public-incidents/secrets/{incident_id}/notes/{note_id}`

Update an existing comment on a public secret incident. Only incident notes
created by the current API key can be updated.

## Path parameters

- `incident_id` integer, required
- `note_id` integer, required

## Request body

- object
  - `comment` string, required — Content of the incident note

## Response `200`

The note was updated successfully.

- object
  - `id` integer
  - `incident_id` integer — Id of the related Public Incident
  - `member_id` integer, nullable — Id of the member who created this note. Can be null if the note was not created by a member or if the member was deleted.
  - `api_token_id` string, uuid, nullable — ID of the API key which created this note. Can be null if the note was not created via the API.
  - `created_at` string, date-time — Creation date of the note
  - `updated_at` string, date-time, nullable — Last time the content of the note was updated. Null if the comment was never modified.
  - `comment` string, nullable

## Other responses

- `400` — Invalid data
- `401` — Invalid API key
- `403` — You cannot update an Incident Note you that was not created by the current API key.
- `404` — Public Secret Incident or Incident Note not found.
- `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)
