IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Delete comments from case API
editDelete comments from case API
editDeletes one or all comments and alerts from a case.
Request
editDELETE <kibana host>:<port>/api/cases/<case_id>/comments
DELETE <kibana host>:<port>/api/cases/<case_id>/comments/<comment_id>
DELETE <kibana host>:<port>/s/<space_id>/api/cases/<case_id>/comments
DELETE <kibana host>:<port>/s/<space_id>/api/cases/<case_id>/comments/<comment_id>
Prerequisites
editYou must have read
or all
privileges and the delete
sub-feature privilege
for the Cases feature in the Management, Observability, or Security
section of the Kibana feature privileges, depending
on the owner
of the cases you’re updating.
Path parameters
edit-
<case_id>
- (Required, string) The identifier for the case. To retrieve case IDs, use Find cases.
-
<comment_id>
- (Optional, string) The identifier for the comment. To retrieve comment IDs, use Get case or Find cases. If it is not specified, all comments are deleted.
- <space_id>
- (Optional, string) An identifier for the space. If it is not specified, the default space is used.
Response codes
edit-
204
- Indicates a successful call.
Examples
editDelete all comments from case ID 9c235210-6834-11ea-a78c-6ffb38a34414
:
DELETE api/cases/a18b38a0-71b0-11ea-a0b2-c51ea50a58e2/comments
Delete comment ID 71ec1870-725b-11ea-a0b2-c51ea50a58e2
from case ID
a18b38a0-71b0-11ea-a0b2-c51ea50a58e2
:
DELETE api/cases/a18b38a0-71b0-11ea-a0b2-c51ea50a58e2/comments/71ec1870-725b-11ea-a0b2-c51ea50a58e2