Full name: projects.locations.instances.cases.chatMessages.upload
Creates a Case-chat message with an attachment.
HTTP request
Path parameters
Parameters | |
---|---|
parent |
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 ( |
Fields | |
---|---|
text |
Optional. This is a required field. |
media |
The content of the attachment. |
mediaInfo |
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 ( |
Fields | |
---|---|
chatMessage |
The updated localization |
mediaInfo |
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.