Method: attachments.upload

Full name: projects.locations.instances.legacySoarUsers.attachments.upload

Create an Attachment.

HTTP request


Path parameters

Parameters
parent

string

Required. The instance to create the Attachment for. Format: projects/{project}/locations/{location}/instances/{instance}/legacySoarUsers/{legacySoarUser}

Request body

The request body contains data with the following structure:

JSON representation
{
  "description": string,
  "media": {
    object (Media)
  },
  "mediaInfo": {
    object (MediaRequestInfo)
  }
}
Fields
description

string

Required. The Attachment to create.

media

object (Media)

The media object to be uploaded.

mediaInfo

object (MediaRequestInfo)

The media request info.

Response body

CreateAttachmentResponse contains the created Attachment.

If successful, the response body contains data with the following structure:

JSON representation
{
  "name": string,
  "fileName": string,
  "description": string,
  "mimeType": string,
  "author": string
}
Fields
name

string

Output only. The created attachment.

fileName

string

Output only. The file name including its file extension, maximum of 256 characters.

description

string

Output only. The attachment description, maximum of 100 characters.

mimeType

string

Output only. The attachment mime type, maximum of 100 characters.

author

string

Output only. The user who uploaded the attachment.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.