---
title: "Update an annotation"
method: PATCH
path: "/analytics/v1/annotations/{id}"
tags: ["Annotations"]
---

# Update an annotation

`PATCH /analytics/v1/annotations/{id}`

Updates the annotation specified by the Id.

## Path parameters

- `id` string, required

## Request body

- UpdateAnnotationRequest — Request body for updating an annotation.
  - `content` string, nullable — The content of the annotation.
  - `timestamp` string, date-time, nullable — The date associated with the annotation.
  - `reports` string[], nullable — List of report IDs associated with the annotation.
  - `labels` string[], nullable — List of label IDs to associate with the annotation. Labels must already exist.

## Response `200`

OK - Annotation updated.

- AnnotationListItem — Summary information about an annotation.
  - `id` string, required — The unique identifier of the annotation.
  - `content` string, required — The content of the annotation.
  - `timestamp` string, date-time, required — The date associated with the annotation.
  - `reports` string[] — List of report IDs associated with the annotation.
  - `labels` LabelInfo[] — List of labels associated with the annotation.
    - `id` string, required — The unique identifier of the label.
    - `name` string, required — The name of the label.
  - `createTime` string, date-time — The creation time of the annotation.
  - `updateTime` string, date-time — The time when the annotation was last updated.

## Other responses

- `400` — Bad Request - The server cannot process the request, often due to a malformed request.
- `401` — Unauthorized - Invalid API key.
- `403` — Forbidden - The client is not authorized to perform the request.
- `404` — Not Found - The requested resource does not exist.

---

[API](https://skmtc.dev/doit/apis/doit-cloud-intelligence.md) · [All operations](https://skmtc.dev/doit/apis/doit-cloud-intelligence/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doit/doit-cloud-intelligence/revisions/9416402fc119/schema)
