---
title: "Create a timeline annotation"
method: POST
path: "/api/sites/{siteId}/annotations"
tags: ["Reporting"]
---

# Create a timeline annotation

`POST /api/sites/{siteId}/annotations`

## Request

- Base URL: `https://slimlytics.com`
- URL: `https://slimlytics.com/api/sites/{siteId}/annotations`
- Auth: HTTP bearer

## Path parameters

- `siteId` string, uuid, required

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `occurredOn` string, date, required
  - `label` string, required

## Response `201`

Annotation created

## Other responses

- `400`: Invalid request
- `401`: Authentication required
- `403`: Insufficient site role
- `404`: Site or resource not found
- `500`: Internal service error

---

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