---
title: "PATCH /sources/{id}/annotations/{annotation_id}"
method: PATCH
path: "/sources/{id}/annotations/{annotation_id}"
tags: ["sources", "annotations"]
---

# PATCH /sources/{id}/annotations/{annotation_id}

`PATCH /sources/{id}/annotations/{annotation_id}`

Update an annotation

## Path parameters

- `id` string, required
- `annotation_id` string, required

## Request body

- UpdateAnnotationRequest
  - `startTime` string — RFC3339 datetime for the start of the annotation
  - `endTime` string — RFC3339 datetime for the end of the annotation
  - `text` string — A user-facing description of the annotation
  - `color` string — Annotation color
  - `tags` object — A set of user-defined tags associated with the annotation

## Response `200`

The updated annotation

- Annotation
  - `id` string — ID of the annotation
  - `startTime` string — RFC3339 datetime for the start of the annotation
  - `endTime` string — RFC3339 datetime for the end of the annotation
  - `text` string — A user-facing description of the annotation
  - `color` string — Annotation color
  - `tags` object — A set of user-defined tags associated with the annotation
  - `links` object
    - `self` string, url — Self link mapping to this resource

## Other responses

- `422` — Source or annotation ID not supplied
- `default` — Unexpected internal server error

---

[API](https://skmtc.net/influxdata/apis/chronograf.md) · [All operations](https://skmtc.net/influxdata/apis/chronograf/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/influxdata/chronograf/versions/ce55d963b4ac/schema)
