Creates a reaction and adds it to a message. For an example, see Create a reaction. Requires user authentication and the chat.messages
, chat.messages.reactions
, or chat.messages.reactions.create
scope. Only unicode emoji are supported.
HTTP request
POST https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The message where the reaction is created. Format: |
Request body
The request body contains an instance of Reaction
.
Response body
If successful, the response body contains a newly created instance of Reaction
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/chat.import
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.messages.reactions.create
For more information, see the Authorization guide.