[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-30 UTC."],[],[],null,["# Method: cases.comments.create\n\nAdd a new comment to a case.\n\nThe comment must have the following fields set: `body`.\n\nEXAMPLES:\n\ncURL: \n\n case=\"projects/some-project/cases/43591344\"\n curl \\\n --request POST \\\n --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"body\": \"This is a test comment.\"\n }' \\\n \"https://cloudsupport.googleapis.com/v2/$case/comments\"\n\nPython: \n\n import googleapiclient.discovery\n\n apiVersion = \"v2\"\n supportApiService = googleapiclient.discovery.build(\n serviceName=\"cloudsupport\",\n version=apiVersion,\n discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={apiVersion}\",\n )\n request = (\n supportApiService.cases()\n .comments()\n .create(\n parent=\"projects/some-project/cases/43595344\",\n body={\"body\": \"This is a test comment.\"},\n )\n )\n print(request.execute())\n\n### HTTP request\n\n`POST https://cloudsupport.googleapis.com/v2beta/{parent=*/*/cases/*}/comments`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [Comment](/support/docs/reference/rest/v2beta/cases.comments#Comment).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Comment](/support/docs/reference/rest/v2beta/cases.comments#Comment).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloudsupport`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]
Add a new comment to a case.
The comment must have the following fields set:
body
.EXAMPLES:
cURL:
Python:
HTTP request
POST https://cloudsupport.googleapis.com/v2beta/{parent=*/*/cases/*}/comments
The URL uses gRPC Transcoding syntax.
Path parameters
parent
string
Required. The name of the case to which the comment should be added.
Request body
The request body contains an instance of
Comment
.Response body
If successful, the response body contains a newly created instance of
Comment
.Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloudsupport
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .