---
title: "Update annotation"
method: PUT
path: "/api/sites/{id}/annotations/{annotationID}"
tags: ["Annotations"]
---

# Update annotation

`PUT /api/sites/{id}/annotations/{annotationID}`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/api/sites/{id}/annotations/{annotationID}`
- Auth: one of:
  - API key in cookie `hk_token`
  - HTTP bearer
  - API key in header `X-API-Key`

Replaces a note's time and text. Requires site.manage_annotations.

## Path parameters

- `id` string, uuid, required
- `annotationID` string, uuid, required

## Request body

- AnnotationInput
  - `body` string, required
  - `ends_at` string, date-time: Set to mark a range; must not be before starts_at.
  - `starts_at` string, date-time, required

## Response `200`

Updated annotation

- Annotation
  - `body` string
  - `created_at` string, date-time
  - `ends_at` string, date-time: Omitted for a single point in time.
  - `id` string, uuid
  - `site_id` string, uuid
  - `starts_at` string, date-time

## Other responses

- `400`: Invalid annotation
- `404`: Annotation not found

---

[API](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api.md) · [All operations](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hitkeep/apis/hitkeep-rest-api/revisions/bb2df36ab2a4?raw)
