Get all case comments

edit

Get all case comments

edit

Returns all comments for the specified case.

Request URL

edit

GET <kibana host>:<port>/api/cases/<case ID>/comments

URL parts

edit

The URL must include the case ID of the case for which you are retrieving comments. Call Find cases to retrieve case IDs.

Example request

edit

Gets all comments for case ID a18b38a0-71b0-11ea-a0b2-c51ea50a58e2:

GET api/cases/a18b38a0-71b0-11ea-a0b2-c51ea50a58e2/comments

Response code

edit
200
Indicates a successful call.

Response payload

edit

A JSON array containing all comments for the specified case.

Response example

edit
[
  {
    "id": "c6f0dca0-71b3-11ea-a0b2-c51ea50a58e2",
    "version": "WzEwNSwxXQ==",
    "comment": "That is nothing - Ethan Hunt answered a targeted social media campaign promoting phishy pension schemes to IMF operatives. Even worse, he likes baked beans.",
    "created_at": "2020-03-29T11:52:33.889Z",
    "created_by": {
      "email": "moneypenny@hms.gov.uk",
      "full_name": "Ms Moneypenny",
      "username": "moneypenny"
    },
    "pushed_at": null,
    "pushed_by": null,
    "updated_at": "2020-03-29T12:14:32.997Z",
    "updated_by": {
      "email": "jbond@hms.gov.uk",
      "full_name": "James Bond",
      "username": "_007"
    }
  },
  {
    "id": "71ec1870-725b-11ea-a0b2-c51ea50a58e2",
    "version": "WzEyOCwxXQ==",
    "comment": "Start operation bubblegum immediately! And chew fast!",
    "created_at": "2020-03-30T07:52:46.702Z",
    "created_by": {
      "email": "classified@hms.oo.gov.uk",
      "full_name": "Classified",
      "username": "M"
    },
    "pushed_at": null,
    "pushed_by": null,
    "updated_at": null,
    "updated_by": null
  }
]