Method: spaces.messages.patchStay organized with collectionsSave and categorize content based on your preferences.
AI-generated Key Takeaways
Updates a Google Chat message using thePATCHmethod, preferably over theupdatemethod which usesPUT.
Supports both app and user authentication, with app authentication limited to updating messages created by the calling Chat app.
Requires specifying the message to update using its resource name in the URL path and the fields to update using theupdateMaskquery parameter.
Allows creation of a new message if the original is not found whenallowMissingquery parameter is set totrueand a client-assigned message ID is provided.
Requires authorization with one of the specified OAuth scopes (chat.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-20 UTC."],[],["This documentation outlines how to update a message using the `PATCH` method via an HTTP request to `https://chat.googleapis.com/v1/{message.name=spaces/*/messages/*}`. The `message.name` path parameter is required, specifying the message's resource name. The `updateMask` query parameter is mandatory, indicating which fields to update (e.g., text, attachments). Optionally, `allowMissing` creates a new message if one isn't found. The request and response bodies utilize the `Message` resource, and app or user authentication are supported, with specific authentication impacting permissions.\n"]]