v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13183063.3 KB
cases

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())

post/v2/{+parent}/comments

Path parameters

parentstring required

Required. The name of the case to which the comment should be added.

Request body

namestring

Output only. Identifier. The resource name of the comment.

createTimestring google-datetime

Output only. The time when the comment was created.

plainTextBodystring

Output only. DEPRECATED. DO NOT USE. A duplicate of the body field. This field is only present for legacy reasons.

bodystring

The full comment body. Maximum of 12800 characters.

Response

Successful response