Spaces method and path for this operation:
post /s/{space_id}/api/apm/services/{serviceName}/annotation
Refer to Spaces for more information.
Create a new annotation for a specific service.
Headers
-
The version of the API to use
Value is
2023-10-31. Default value is2023-10-31. -
A required header to protect against CSRF attacks
POST
/api/apm/services/{serviceName}/annotation
curl \
--request POST 'https://localhost:5601/api/apm/services/{serviceName}/annotation' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "elastic-api-version: 2023-10-31" \
--header "kbn-xsrf: true" \
--data '{
"@timestamp": "string",
"message": "string",
"service": {
"environment": "string",
"version": "string"
},
"tags": [
"string"
]
}'