---
title: "POST /v2/{+parent}/comments"
method: POST
path: "/v2/{+parent}/comments"
tags: ["cases"]
---

# POST /v2/{+parent}/comments

`POST /v2/{+parent}/comments`

Add a new comment to a case. The comment must have the following fields set: `body`. EXAMPLES: cURL: ```shell case="projects/some-project/cases/43591344" curl \ --request POST \ --header "Authorization: Bearer $(gcloud auth print-access-token)" \ --header 'Content-Type: application/json' \ --data '{ "body": "This is a test comment." }' \ "https://cloudsupport.googleapis.com/v2/$case/comments" ``` Python: ```python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = ( supportApiService.cases() .comments() .create( parent="projects/some-project/cases/43595344", body={"body": "This is a test comment."}, ) ) print(request.execute()) ```

## Path parameters

- `parent` string, required

## Request body

- Comment — A comment associated with a support case. Case comments are the primary way for Google Support to communicate with a user who has opened a case. When a user responds to Google Support, the user's responses also appear as comments.
  - `name` string — Output only. Identifier. The resource name of the comment.
  - `createTime` string, google-datetime — Output only. The time when the comment was created.
  - `plainTextBody` string — Output only. DEPRECATED. DO NOT USE. A duplicate of the `body` field. This field is only present for legacy reasons.
  - `creator` Actor — An Actor represents an entity that performed an action. For example, an actor could be a user who posted a comment on a support case, a user who uploaded an attachment, or a service account that created a support case.
    - `displayName` string — The name to display for the actor. If not provided, it is inferred from credentials supplied during case creation. When an email is provided, a display name must also be provided. This will be obfuscated if the user is a Google Support agent.
    - `googleSupport` boolean — Output only. Whether the actor is a Google support actor.
    - `email` string — The email address of the actor. If not provided, it is inferred from the credentials supplied during case creation. When a name is provided, an email must also be provided. If the user is a Google Support agent, this is obfuscated. This field is deprecated. Use `username` instead.
    - `username` string — Output only. The username of the actor. It may look like an email or other format provided by the identity provider. If not provided, it is inferred from the credentials supplied. When a name is provided, a username must also be provided. If the user is a Google Support agent, this will not be set.
  - `body` string — The full comment body. Maximum of 12800 characters.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/cloudsupport.md) · [All operations](https://skmtc.dev/google/apis/cloudsupport/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/cloudsupport/revisions/a86345007852/schema)
