Create a service annotation

Base URL
https://{kibana_url}
Auth

Create a new annotation for a specific service.

Path parameters

serviceName string required

The name of the service

Header parameters

elastic-api-version enum · default: 2023-10-31 required

The version of the API to use

Values: 2023-10-31
kbn-xsrf string required

A required header to protect against CSRF attacks

Request body

@timestamp string required

The date and time of the annotation. It must be in ISO 8601 format.

message string

The message displayed in the annotation. It defaults to service.version.

service object required

The service that identifies the configuration to create or update.

environment string

The environment of the service.

version string required

The version of the service.

tags string[]

Tags are used by the Applications UI to distinguish APM annotations from other annotations. Tags may have additional functionality in future releases. It defaults to [apm]. While you can add additional tags, you cannot remove the apm tag.

Responses

Annotation created successfully

application/json
_id string

Identifier

_index string

Index

_source object

Response

@timestamp string
annotation object
title string
type string
event object
created string
message string
service object
environment string
name string
version string
tags string[]

Bad Request response

application/json
error string

Error type

message string

Error message

statusCode number

Error status code

Unauthorized response

application/json
error string

Error type

message string

Error message

statusCode number

Error status code

Forbidden response

application/json
error string

Error type

message string

Error message

statusCode number

Error status code

Not found response

application/json
error string

Error type

message string

Error message

statusCode number

Error status code

Base URL
https://{kibana_url}