- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- CaseCommentV2
- EvidenceType
Full name: projects.locations.instances.legacyCases.addEvidence
Adds evidence, such as a file attachment, to a specific case. The evidence is recorded on the case wall with an optional description and can be marked as important.
HTTP request
POST https://chronicle.africa-south1.rep.googleapis.com/v1alpha/{name}/legacyCases:addEvidence Path parameters
| Parameters | |
|---|---|
name |
Required. The evidence (attachment) of a given case. Format: projects/{project}/locations/{location}/instances/{instance}/legacyCases:addEvidence |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "caseId": string, "alertIdentifier": string, "base64Blob": string, "type": string, "description": string, "isImportant": boolean } |
| Fields | |
|---|---|
caseId |
Required. CaseId is the ID of the case associated for the action. |
alertIdentifier |
|
base64Blob |
|
type |
|
description |
|
isImportant |
|
Response body
Response message for legacyCases.addEvidence
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "name": string, "caseId": string, "creator": string, "type": string, "isImportant": boolean, "comment": string, "commentId": string, "description": string, "evidenceThumbnail": string, "sizeInKb": integer, "isFavorite": boolean, "caseCommentV2": { object ( |
| Fields | |
|---|---|
name |
|
caseId |
Output only. CaseId is the ID of the case associated for the action. |
creator |
|
type |
|
isImportant |
|
comment |
|
commentId |
|
description |
|
evidenceThumbnail |
|
sizeInKb |
|
isFavorite |
|
caseCommentV2 |
|
evidenceType |
|
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/chroniclehttps://www.googleapis.com/auth/chronicle.readonly
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name resource:
chronicle.cases.update
For more information, see the IAM documentation.
CaseCommentV2
| JSON representation |
|---|
{ "title": string, "comment": string, "isFromWorkflowActivity": boolean, "lastEditor": string, "isDeleted": boolean, "commentForClient": string, "modificationTimeUnixTimInMsForClient": string, "isFavorite": boolean } |
| Fields | |
|---|---|
title |
|
comment |
|
isFromWorkflowActivity |
|
lastEditor |
|
isDeleted |
|
commentForClient |
|
modificationTimeUnixTimInMsForClient |
|
isFavorite |
|
EvidenceType
Evidence Type
| Enums | |
|---|---|
ATTACHMENT |
|
DATA |
|