Method: spaces.messages.updateStay organized with collectionsSave and categorize content based on your preferences.
AI-generated Key Takeaways
Updates a Google Chat message using thePUTmethod, preferably with thepatchapproach for partial modifications.
Requires providing the message's resource name in the URL path for identification.
Allows specifying fields to update usingupdateMaskand supports creating a new message if the original is missing withallowMissingset totrue.
Authentication can be done using app authentication or user authentication, with app authentication restricting updates to messages created by the calling Chat app.
Needs authorization with specific OAuth scopes likechat.bot,chat.import, orchat.messages.
Updates a message. There's a difference between thepatchandupdatemethods. Thepatchmethod uses apatchrequest while theupdatemethod uses aputrequest. We recommend using thepatchmethod. For an example, seeUpdate a message.
Where{space}is the ID of the space where the message is posted and{message}is a system-assigned ID for the message. For example,spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB.
If you set a custom ID when you create a message, you can use this ID to specify the message in a request by replacing{message}with the value from theclientAssignedMessageIdfield. For example,spaces/AAAAAAAAAAA/messages/client-custom-name. For details, seeName a message.
quotedMessageMetadata(Only allows removal of the quoted message.)
allowMissing
boolean
Optional. Iftrueand the message isn't found, a new message is created andupdateMaskis ignored. The specified message ID must beclient-assignedor the request fails.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-13 UTC."],[],["This describes updating messages in Google Chat using either `patch` or `put` requests, recommending `patch`. The `PUT` request uses the format `https://chat.googleapis.com/v1/{message.name=spaces/*/messages/*}`. Updating requires specifying the `message.name` path parameter and the `updateMask` query parameter to identify fields to modify. Optional `allowMissing` creates a new message if one is not found. The request and response body are `Message` instances. Authorization requires specific OAuth scopes. App authentication can update messages from the calling app only.\n"]]