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 URL
    https://chat.googleapis.com
  • URL
    https://chat.googleapis.com/v1/spaces/{spacesId}/messages/{messagesId}:replaceCards
  • Auth
    OAuth 2 and OAuth 2
    Implicit: https://accounts.google.com/o/oauth2/auth
    Scopes: https://www.googleapis.com/auth/chat.bot
    Authorization code: https://accounts.google.com/o/oauth2/auth
    Token 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

ReplaceMessageCardsResponse required

Response message for ReplaceMessageCards API.

Changes

No recorded changes to this operation across all 9 revisions of this API.