Skip to main content
POST
Create an annotation

Authorizations

Authorization
string
header
required

Organization API key (sl_…).

Headers

x-tenant-id
string
required

The organization ID the request is scoped to.

Body

application/json

Create an annotation: a manual note pinned to a point in time on a chart.

user_email defaults to the calling user. An API key has no user identity, so a key-authenticated caller must set user_email.

title
string
required
Required string length: 1 - 200
effective_time
string<date-time>
required

The moment on the chart timeline the note refers to, as an RFC 3339 timestamp. Converted to UTC; a timestamp with no offset is read as UTC.

srn
string
required

The canonical SELECT Resource Name (SRN) of the resource the note is about. Resolve one from a resource's identifying details with POST /v2/srn/actions/resolve. An empty string scopes the note to the whole organization. Insight SRNs are rejected.

Maximum string length: 2048
description
string | null
team_id
string<uuid> | null

The team the note belongs to. Only members of the team, and callers who can read annotations across the organization, can see it. Omit it for an organization-level note.

user_email
string

Email of the person this annotation is attributed to. Defaults to the calling user. Required for an API key, which has no user identity. Cannot be null.

Minimum string length: 1

Response

Successful Response

A manual note pinned to a point in time on a chart.

srn is the resource the note belongs to, or an empty string when it applies to the whole organization.

id
string
required
title
string
required
effective_time
string
required
srn
string
required
user_email
string
required
created_by
string
required
create_time
string
required
update_time
string
required
etag
string
required
read-only

Opaque strong ETag.

description
string | null
team_id
string | null