Method: messages.create

Full name: projects.locations.instances.users.conversations.messages.create

CreateMessage is used to create a new message in a conversation. This is equivalent to sending a new message.

HTTP request

POST https://chronicle.googleapis.com/v1alpha/{parent}/messages

Path parameters

Parameters
parent

string

Required. The conversation resource where this message will be created. Format: projects/{project}/locations/{location}/instances/{instance}/users/{user}/conversations/{conversation}

Request body

The request body contains an instance of Message.

Response body

If successful, the response body contains a newly created instance of Message.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the parent resource:

  • chronicle.messages.create

For more information, see the IAM documentation.