Create annotations
POST/v1/grafana/api/annotations/
Creates an annotation in the Grafana database. Please ensure to change the region in the URL to match your account's region.
Request
- application/json
Body
dashboardId integer
Id of the dashboard. The dashboardId and panelId fields are optional. If they are not specified then a global annotation is created and can be queried in any dashboard that adds the Grafana annotations data source.
panelId integer
Id of the panel. The dashboardId and panelId fields are optional. If they are not specified then a global annotation is created and can be queried in any dashboard that adds the Grafana annotations data source.
time integer
Epoch time in milliseconds.
timeEnd integer
Epoch time in milliseconds.
tags string[]
Annotation tags.
text string
Annotation Description.
Responses
- 200
successful query
- application/json
- Schema
- Example (from schema)
Schema
id integer
ID.
message string
Confirmation message.
{
"id": 1,
"message": "Annotation added"
}
Loading...