Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename.
HTTP request
POST https://cloudsupport.googleapis.com/v2beta/{parent=*/*}/attachments
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The resource name of the case (or case parent) to which the attachment should be attached. |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"attachment": {
object ( |
| Fields | |
|---|---|
attachment |
Required. The attachment to be created. |
Response body
If successful, the response body contains a newly created instance of Attachment.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloudsupporthttps://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.