Method: attachments.create

Create a file attachment on a case or Cloud resource.

HTTP request

POST https://cloudsupport.googleapis.com/v2beta/{parent=*/*}/attachments

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The resource name of the case to which attachment should be attached.

Request body

The request body contains data with the following structure:

JSON representation
{
  "attachment": {
    object (Attachment)
  }
}
Fields
attachment

object (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/cloudsupport
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.