spaces
POST /v1/spaces/{spacesId}/messages/{messagesId}:replaceCards
Replaces the cards included in a message. A Chat app can only replace cards on a human-created message if the message already contains cards, and the cards were created by the app. If the app replaces the cards with an empty list, the cards are removed. After removing the cards, the app cannot add cards back to the message. Requires app authentication with the authorization scope: - https://www.googleapis.com/auth/chat.bot
Request
- Base URLhttps://chat.googleapis.com
- URLhttps://chat.googleapis.com/v1/spaces/{spacesId}/messages/{messagesId}:replaceCards
- AuthOAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/chat.botAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/chat.bot
Path parameters
spacesIdstring required
messagesIdstring required
Request body
Response
Successful response
Replace Message Cards Response required
Response message for ReplaceMessageCards API.
Changes
No recorded changes to this operation across all 9 revisions of this API.