Add or update a note

PATCH /api/note

Add a note to a Timeline or update an existing note.

application/json; Elastic-Api-Version=2023-10-31

Body Required

The note to add or update, along with additional metadata.

Responses

  • 200 application/json; Elastic-Api-Version=2023-10-31

    Indicates the note was successfully created.

    Hide response attribute Show response attribute object
PATCH /api/note
curl \
 -X PATCH https://localhost:5601/api/note \
 -H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
  "eventDataView": "string",
  "eventIngested": "string",
  "eventTimestamp": "string",
  "note": {
    "created": 42.0,
    "createdBy": "string",
    "eventId": "string",
    "note": "string",
    "timelineId": "string",
    "updated": 42.0,
    "updatedBy": "string"
  },
  "noteId": "string",
  "overrideOwner": true,
  "version": "string"
}
Response examples (200)
{
  "data": {
    "persistNote": {
      "code": 42.0,
      "message": "string",
      "note": {
        "created": 42.0,
        "createdBy": "string",
        "eventId": "string",
        "note": "string",
        "timelineId": "string",
        "updated": 42.0,
        "updatedBy": "string",
        "noteId": "string",
        "version": "string"
      }
    }
  }
}