Google Chat API (chat:v1)

2022-11-30

1 new method

Additions

    Methods
  • chat.spaces.messages.patch

      Parameters:

        allowMissing

          Location: query

          Type: boolean

          Description: Optional. If `true` and the message is not found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https://developers.google.com/chat/api/guides/crudl/messages#name_a_created_message) or the request fails.

        name

          Required: Yes

          Location: path

          Description: Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`

          Pattern: ^spaces/[^/]+/messages/[^/]+$

          Type: string

        updateMask

          Location: query

          Description: Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - text - cards (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - cards_v2

          Format: google-fieldmask

          Type: string

      Description: Updates a message. For example usage, see [Update a message](https://developers.google.com/chat/api/guides/crudl/messages#update_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth/). Fully supports [service account authentication](https://developers.google.com/chat/api/guides/auth/service-accounts). Supports [user authentication](https://developers.google.com/chat/api/guides/auth/users) as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features. [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` authorization scope.

      Path: v1/{+name}

      Parameter Order: name

      Flat Path: v1/spaces/{spacesId}/messages/{messagesId}

      Scopes: https://www.googleapis.com/auth/chat.messages

      HTTP Method: PATCH