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

# Update a secret incident note

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

Update an existing comment on a 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 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` string, nullable — Name of the API key which created this note. Can be null if the note was not created via the API. Use `api_token_id` instead.
  - `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
  - `issue_id` integer — Id of the related Incident. Use `incident_id` instead.
  - `user_id` integer, nullable — Id of the user who created this note. Can be null if the note was not created by a user or if the user was deleted. Use `member_id` instead.

## 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` — 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)
