- [Resource: CaseComment](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments#CaseComment)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments#CaseComment.SCHEMA_REPRESENTATION)
  - [CaseAttachment](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments#CaseComment.CaseAttachment)
    - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments#CaseComment.CaseAttachment.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments#METHODS_SUMMARY)

## Resource: CaseComment

This service is available for customers who migrated SOAR to a customer managed project and have the Chronicle API enabled. Case Comment - Chronicle SOAR Case Comment.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "user": string, "comment": string, "deletionInvoker": string, "alertIdentifier": string, "caseAttachment": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments#CaseComment.CaseAttachment`) }, "userOwnerFullName": string, "lastEditorFullName": string, "deletedByUser": string, "case": string, "isFavorite": boolean, "isDeleted": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Identifier. The unique name(ID) of the CaseComment. Format: projects/{project}/locations/{location}/instances/{instance}/cases/{case}/caseComments/{caseComment} |
| `createTime` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The timestamp when the comment was created. |
| `updateTime` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The timestamp when the comment was last updated. |
| `user` | `string` Output only. User owner of the comment. |
| `comment` | `string` Required. The content of the comment. |
| `deletionInvoker` | `string` Output only. The user who deleted the comment. |
| `alertIdentifier` | `string` Optional. The alert associated with the comment. |
| `caseAttachment` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments#CaseComment.CaseAttachment`)`` Optional. The attachment associated with the comment. |
| `userOwnerFullName` | `string` Output only. The user who created the comment. |
| `lastEditorFullName` | `string` Output only. The user who last edited the comment. |
| `deletedByUser` | `string` Output only. The user who deleted the comment. |
| `case` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. The case associated with the comment. |
| `isFavorite` | `boolean` Optional. Whether the comment is marked as a favorite. |
| `isDeleted` | `boolean` Output only. Indicates if the comment has been softly deleted. |

### CaseAttachment

Case Attachment of the Case Comment.

| JSON representation |
|---|
| ``` { "attachmentBase64": string, "fileType": string, "fileName": string, "fileId": string } ``` |

| Fields ||
|---|---|
| `attachmentBase64` | `string` Required. Base64 encoded attachment associated with the comment (if exists). |
| `fileType` | `string` Required. The file type of the attachment (if exists). |
| `fileName` | `string` Required. The file name of the attachment (if it exists). |
| `fileId` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The file id of the attachment. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments/batchCreate` | Adds multiple case comments in a single operation. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments/create` | Creates a new CaseComment. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments/delete` | Performs a soft delete of a CaseComment. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments/get` | Gets a single CaseComment by its resource name. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments/list` | Lists CaseComments associated with a specific Case. |
| ### `https://docs.cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.cases.caseComments/patch` | Updates an existing CaseComment. |