Spaces method and path for this operation:
get /s/{space_id}/api/cases/{caseId}
Refer to Spaces for more information.
Returns case details. The response does not include a comments property; use the find case comments API to retrieve comments. The totalComment field reflects the actual number of user comments on the case. You must have read privileges for the Cases feature in the Management, Observability, or Security section of the Kibana feature privileges, depending on the owner of the case you're seeking.
GET
/api/cases/{caseId}
curl \
--request GET 'https://localhost:5601/api/cases/9c235210-6834-11ea-a78c-6ffb38a34414' \
--header "Authorization: $API_KEY"
Response examples (200)
Get case response. Comments are not included; use the find case comments API. totalComment reflects the actual count.
{
"assignees": [
{
"uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0"
}
],
"category": null,
"closed_at": null,
"closed_by": null,
"connector": {
"fields": null,
"id": "none",
"name": "none",
"type": ".none"
},
"created_at": "2023-10-13T15:33:50.604Z",
"created_by": {
"email": null,
"full_name": null,
"profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"username": "elastic"
},
"customFields": [
{
"key": "d312efda-ec2b-42ec-9e2c-84981795c581",
"type": "text",
"value": "My field value"
},
{
"key": "fcc6840d-eb14-42df-8aaf-232201a705ec",
"type": "toggle",
"value": null
}
],
"description": "A case description",
"duration": null,
"external_service": null,
"id": "31cdada0-02c1-11ed-85f2-4f7c222ca2fa",
"incremental_id": 1,
"observables": [],
"owner": "cases",
"settings": {
"extractObservables": false,
"syncAlerts": true
},
"severity": "low",
"status": "open",
"tags": [
"tag 1"
],
"title": "Case title 1",
"total_observables": 0,
"totalAlerts": 1,
"totalComment": 1,
"totalEvents": 0,
"updated_at": "2023-10-13T15:40:32.335Z",
"updated_by": {
"email": null,
"full_name": null,
"profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"username": "elastic"
},
"version": "WzM2LDFd"
}
{
"assignees": [
{
"uid": "u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0"
}
],
"category": null,
"closed_at": null,
"closed_by": null,
"connector": {
"fields": null,
"id": "none",
"name": "none",
"type": ".none"
},
"created_at": "2023-11-06T19:29:04.086Z",
"created_by": {
"email": null,
"full_name": null,
"username": "elastic"
},
"customFields": [],
"description": "An Observability case description.",
"duration": null,
"external_service": null,
"id": "c3ff7550-def1-4e90-b6bc-c9969a4a09b1",
"observables": [],
"owner": "observability",
"settings": {
"extractObservables": false,
"syncAlerts": false
},
"severity": "low",
"status": "in-progress",
"tags": [
"observability",
"tag 1"
],
"title": "Observability case title 1",
"total_observables": 0,
"totalAlerts": 1,
"totalComment": 1,
"totalEvents": 0,
"updated_at": "2023-11-06T19:47:55.662Z",
"updated_by": {
"email": null,
"full_name": null,
"profile_uid": "u_mGBROF_q5bmFCATbLXAcCwKa0k8JvONAwSruelyKA5E_0",
"username": "elastic"
},
"version": "WzI0NywyXQ=="
}
Response examples (401)
{
"error": "Unauthorized",
"message": "Unable to authenticate with the provided credentials.",
"statusCode": 401
}