- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- CaseCommentV2
- EvidenceType
- Try it!
Full name: projects.locations.instances.legacyCases.addEvidence
Adds an evidence (attachment) to a given case.
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 the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
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 |
|