Need help on Annotation API on transactions in Elasticsearch. I have tried to create for one of my .Net service below is the code I run in kibana dev tools:
POST /api/apm/service/1ACT/annotation
{
-H 'Content-Type: application/json' \
-H 'kbn-xsrf: true' \
-H 'Authorization: Basic ${API_KEY}' \
-d '{
"@timestamp": "2024-05-10 12:00:00",
"service": {
"version": "1.2"
},
"message": "Deployment of 1.2"
}'
}
Error:
Error code 400,
Bad request.
I have tried without braces after post and by adding kbn:/api/APM/service/annotation. Still no use.
Please help out how to resolve this issue