Spaces method and path for this operation:
Refer to Spaces for more information.
Creates a new note or updates an existing one.
Create: Send note and omit noteId to create a new saved object.
Update: Send note with the changed fields and set noteId to the note's saved object ID. Optionally include version for optimistic concurrency when the client has it from a prior read.
Requires the Timeline and Notes write privilege (notes_write).
Body
Required
Body must include the note object. For updates, include noteId (and optionally version).
To attach a note to a specific event, set note.eventId to that event's document _id; for a timeline-wide note, omit or clear eventId per product rules.
-
The
savedObjectIdof the note to update. Omit when creating a new note. -
Saved object version string from a previous read; optional on update.
curl \
--request PATCH 'https://<KIBANA_URL>/api/note' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"note":{"eventId":"d3a1d35a3e84a81b2f8f3859e064c224cdee1b4bc","note":"Escalated to tier-2 analyst","timelineId":"15c1929b-0af7-42bd-85a8-56e234cc7c4e"}}'
{
"note": {
"eventId": "d3a1d35a3e84a81b2f8f3859e064c224cdee1b4bc",
"note": "Escalated to tier-2 analyst",
"timelineId": "15c1929b-0af7-42bd-85a8-56e234cc7c4e"
}
}
{
"note": {
"eventId": "d3a1d35a3e84a81b2f8f3859e064c224cdee1b4bc",
"note": "Escalated to tier-2 analyst",
"noteId": "709f99c6-89b6-4953-9160-35945c8e174e",
"timelineId": "15c1929b-0af7-42bd-85a8-56e234cc7c4e",
"version": "WzQ2LDFd"
}
}