Method: chatMessages.upload

Full name: projects.locations.instances.cases.chatMessages.upload

Creates a Case-chat message with an attachment.

HTTP request


Path parameters

Parameters
parent

string

Required. The instance to create the Casechat for. Format: projects/{project}/locations/{location}/instances/{instance}/cases/{case}/chatMessage/{chatMessage}

Request body

The request body contains data with the following structure:

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

string

Optional. This is a required field.

media

object (Media)

The content of the attachment.

mediaInfo

object (MediaRequestInfo)

The media request info.

Response body

Response model for create a chat-message with an attachment operation

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

JSON representation
{
  "chatMessage": {
    object (ChatMessage)
  },
  "mediaInfo": {
    object (MediaResponseInfo)
  }
}
Fields
chatMessage

object (ChatMessage)

The updated localization

mediaInfo

object (MediaResponseInfo)

The media response info.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.