Create annotation
Creates an annotation on one or more existing datasets. If you omit time, Axiom uses the time of the request. time can't be in the future.
Body
application/json| Property | Type | Description |
|---|---|---|
datasets | string[]Required | array<string> of dataset names for which the annotation appears on charts |
description | string | Explanation of the event the annotation marks on the charts |
end | string | End time of the annotation |
time | string | Time the annotation marks on the charts. If you don't include this field, Axiom assigns the time of the API request to the annotation. |
title | string | Summary of the annotation that appears on the charts |
type | stringRequired | Type of the event marked by the annotation. Use only alphanumeric characters or hyphens. For example, "production-deployment". |
url | string | URL relevant for the event marked by the annotation. For example, link to GitHub pull request. |
Request
Try itRun this request against your Axiom organization
Credentials stay in this browser tab and are only sent to Axiom when you run the request.
Response
201Created annotation.400Invalid annotation, for example an unknown dataset, a `time` in the future, or an `endTime` before `time`.| Property | Type | Description |
|---|---|---|
datasets | string[]Required | array<string> of dataset names for which the annotation appears on charts |
description | string | Explanation of the event the annotation marks on the charts |
end | string | End time of the annotation |
id | stringRequired | |
time | stringRequired | Time the annotation marks on the charts. If you don't include this field, Axiom assigns the time of the API request to the annotation. |
title | string | Summary of the annotation that appears on the charts |
type | stringRequired | Type of the event marked by the annotation. Use only alphanumeric characters or hyphens. For example, "production-deployment". |
url | string | URL relevant for the event marked by the annotation. For example, link to GitHub pull request. |