grr-cli 0.13.2

Google tools from the terminal, at maximum performance: 401 methods across 14 Google APIs in one generated command tree, zero-config, over HTTP/3
Documentation
1
{"name":"chat","version":"v1","revision":"20261008","title":"Google Chat API","rootUrl":"https://chat.googleapis.com/","servicePath":"","basePath":"","batchPath":"batch","methods":[{"id":"customEmojis.create","httpMethod":"POST","path":"v1/customEmojis","flatPath":"v1/customEmojis","description":"Creates a custom emoji. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see [Learn about custom emojis in Google Chat](https://support.google.com/chat/answer/12800149) and [Manage custom emoj","scopes":["https://www.googleapis.com/auth/chat.customemojis"],"required":[],"parameters":[]},{"id":"customEmojis.delete","httpMethod":"DELETE","path":"v1/{+name}","flatPath":"v1/customEmojis/{customEmojisId}","description":"Deletes a custom emoji. By default, users can only delete custom emoji they created. [Emoji managers](https://support.google.com/a/answer/12850085) assigned by the administrator can delete any custom emoji in the organization. See [Learn about custom emojis in Google Chat](https://support.google.com","scopes":["https://www.googleapis.com/auth/chat.customemojis"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the custom emoji to delete. Format: `customEmojis/{customEmoji}` You can use the emoji name as an alias for `{customEmoji}`. For exam","enum":null}]},{"id":"customEmojis.get","httpMethod":"GET","path":"v1/{+name}","flatPath":"v1/customEmojis/{customEmojisId}","description":"Returns details about a custom emoji. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see [Learn about custom emojis in Google Chat](https://support.google.com/chat/answer/12800149) and [Mana","scopes":["https://www.googleapis.com/auth/chat.customemojis","https://www.googleapis.com/auth/chat.customemojis.readonly"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the custom emoji. Format: `customEmojis/{customEmoji}` You can use the emoji name as an alias for `{customEmoji}`. For example, `cust","enum":null}]},{"id":"customEmojis.list","httpMethod":"GET","path":"v1/customEmojis","flatPath":"v1/customEmojis","description":"Lists custom emojis visible to the authenticated user. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see [Learn about custom emojis in Google Chat](https://support.google.com/chat/answer/12","scopes":["https://www.googleapis.com/auth/chat.customemojis","https://www.googleapis.com/auth/chat.customemojis.readonly"],"required":[],"parameters":[{"name":"filter","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A query filter. Supports filtering by creator. To filter by creator, you must specify a valid value. Currently only `creator(\"users/me\")` and `NOT cre","enum":null},{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"Optional. The maximum number of custom emojis returned. The service can return fewer custom emojis than this value. If unspecified, the default value is 25. The","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. (If resuming from a previous query.) A page token received from a previous list custom emoji call. Provide this to retrieve the subsequent page. When ","enum":null}]},{"id":"media.download","httpMethod":"GET","path":"v1/media/{+resourceName}","flatPath":"v1/media/{mediaId}","description":"Downloads media. Download is supported on the URI `/v1/media/{+name}?alt=media`.","scopes":["https://www.googleapis.com/auth/chat.bot","https://www.googleapis.com/auth/chat.messages","https://www.googleapis.com/auth/chat.messages.readonly"],"required":["resourceName"],"parameters":[{"name":"resourceName","type":"string","required":true,"repeated":false,"location":"path","description":"Name of the media that is being downloaded. See ReadRequest.resource_name.","enum":null}]},{"id":"media.upload","httpMethod":"POST","path":"v1/{+parent}/attachments:upload","flatPath":"v1/spaces/{spacesId}/attachments:upload","description":"Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/workspace/chat/upload-media-attachments). Requires user [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorizatio","scopes":["https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.messages","https://www.googleapis.com/auth/chat.messages.create"],"required":["parent"],"parameters":[{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the Chat space in which the attachment is uploaded. Format \"spaces/{space}\".","enum":null}]},{"id":"spaces.completeImport","httpMethod":"POST","path":"v1/{+name}:completeImport","flatPath":"v1/spaces/{spacesId}:completeImport","description":"Completes the [import process](https://developers.google.com/workspace/chat/import-data) for the specified space and makes it visible to users. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) and domain-wide delegation with the [authoriza","scopes":["https://www.googleapis.com/auth/chat.import"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the import mode space. Format: `spaces/{space}`","enum":null}]},{"id":"spaces.create","httpMethod":"POST","path":"v1/spaces","flatPath":"v1/spaces","description":"Creates a space. Can be used to create a named space, or a group chat in `Import mode`. For an example, see [Create a space](https://developers.google.com/workspace/chat/create-spaces). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authori","scopes":["https://www.googleapis.com/auth/chat.app.spaces","https://www.googleapis.com/auth/chat.app.spaces.create","https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.spaces","https://www.googleapis.com/auth/chat.spaces.create"],"required":[],"parameters":[{"name":"requestId","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A unique ID for this request. A random UUID is recommended. Specifying a request ID makes the request idempotent, which ensures that multiple identica","enum":null}]},{"id":"spaces.delete","httpMethod":"DELETE","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}","description":"Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see [Delete a space](https://developers.google.com/workspace/chat/delete-spaces). Supports the foll","scopes":["https://www.googleapis.com/auth/chat.admin.delete","https://www.googleapis.com/auth/chat.app.delete","https://www.googleapis.com/auth/chat.delete","https://www.googleapis.com/auth/chat.import"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the space to delete. Format: `spaces/{space}`","enum":null},{"name":"useAdminAccess","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator wit","enum":null}]},{"id":"spaces.findDirectMessage","httpMethod":"GET","path":"v1/spaces:findDirectMessage","flatPath":"v1/spaces:findDirectMessage","description":"Returns the existing direct message with the specified user. If no direct message space is found, returns a `404 NOT_FOUND` error. For an example, see [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [app authentication](https://developers.google.com/workspace/chat/authe","scopes":["https://www.googleapis.com/auth/chat.bot","https://www.googleapis.com/auth/chat.spaces","https://www.googleapis.com/auth/chat.spaces.readonly"],"required":[],"parameters":[{"name":"name","type":"string","required":false,"repeated":false,"location":"query","description":"Required. Resource name of the user to find direct message with. Format: `users/{user}`, where `{user}` is either the `id` for the [person](https://developers.g","enum":null}]},{"id":"spaces.findGroupChats","httpMethod":"GET","path":"v1/spaces:findGroupChats","flatPath":"v1/spaces:findGroupChats","description":"Returns all spaces with `spaceType == GROUP_CHAT`, whose human memberships contain exactly the calling user, and the users specified in `FindGroupChatsRequest.users`. Only members that have joined the conversation are supported. For an example, see [Find group chats](https://developers.google.com/wo","scopes":["https://www.googleapis.com/auth/chat.memberships","https://www.googleapis.com/auth/chat.memberships.readonly"],"required":[],"parameters":[{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"Optional. The maximum number of spaces to return. The service might return fewer than this value. If unspecified, at most 10 spaces are returned. The maximum va","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A page token, received from a previous call to find group chats. Provide this parameter to retrieve the subsequent page. When paginating, all other pa","enum":null},{"name":"spaceView","type":"string","required":false,"repeated":false,"location":"query","description":"Requested space view type. If unset, defaults to `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify `SPACE_VIEW_EXPANDED` must include scopes that allow rea","enum":["SPACE_VIEW_UNSPECIFIED","SPACE_VIEW_RESOURCE_NAME_ONLY","SPACE_VIEW_EXPANDED"]},{"name":"users","type":"string","required":false,"repeated":true,"location":"query","description":"Optional. Resource names of all human users in group chat with the calling user. Chat apps can't be included in the request. The maximum number of users that ca","enum":null}]},{"id":"spaces.get","httpMethod":"GET","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}","description":"Returns details about a space. For an example, see [Get details about a space](https://developers.google.com/workspace/chat/get-spaces). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.go","scopes":["https://www.googleapis.com/auth/chat.admin.spaces","https://www.googleapis.com/auth/chat.admin.spaces.readonly","https://www.googleapis.com/auth/chat.app.spaces","https://www.googleapis.com/auth/chat.bot","https://www.googleapis.com/auth/chat.spaces","https://www.googleapis.com/auth/chat.spaces.readonly"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the space, in the form `spaces/{space}`. Format: `spaces/{space}`","enum":null},{"name":"useAdminAccess","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator wit","enum":null}]},{"id":"spaces.list","httpMethod":"GET","path":"v1/spaces","flatPath":"v1/spaces","description":"Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/workspace/chat/list-spaces). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authen","scopes":["https://www.googleapis.com/auth/chat.bot","https://www.googleapis.com/auth/chat.spaces","https://www.googleapis.com/auth/chat.spaces.readonly"],"required":[],"parameters":[{"name":"filter","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A query filter. You can filter spaces by the space type ([`space_type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces#spac","enum":null},{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"Optional. The maximum number of spaces to return. The service might return fewer than this value. If unspecified, at most 100 spaces are returned. The maximum v","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A page token, received from a previous list spaces call. Provide this parameter to retrieve the subsequent page. When paginating, the filter value sho","enum":null}]},{"id":"spaces.members.create","httpMethod":"POST","path":"v1/{+parent}/members","flatPath":"v1/spaces/{spacesId}/members","description":"Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships for other Chat apps isn't supported. When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. ","scopes":["https://www.googleapis.com/auth/chat.admin.memberships","https://www.googleapis.com/auth/chat.app.memberships","https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.memberships","https://www.googleapis.com/auth/chat.memberships.app"],"required":["parent"],"parameters":[{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the space for which to create the membership. Format: spaces/{space}","enum":null},{"name":"useAdminAccess","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator wit","enum":null}]},{"id":"spaces.members.delete","httpMethod":"DELETE","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}/members/{membersId}","description":"Deletes a membership. For an example, see [Remove a user or a Google Chat app from a space](https://developers.google.com/workspace/chat/delete-members). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](http","scopes":["https://www.googleapis.com/auth/chat.admin.memberships","https://www.googleapis.com/auth/chat.app.memberships","https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.memberships","https://www.googleapis.com/auth/chat.memberships.app"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the membership to delete. Chat apps can delete human users' or their own memberships. Chat apps can't delete other apps' memberships.","enum":null},{"name":"useAdminAccess","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator wit","enum":null}]},{"id":"spaces.members.get","httpMethod":"GET","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}/members/{membersId}","description":"Returns details about a membership. For an example, see [Get details about a user's or Google Chat app's membership](https://developers.google.com/workspace/chat/get-members). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [Ap","scopes":["https://www.googleapis.com/auth/chat.admin.memberships","https://www.googleapis.com/auth/chat.admin.memberships.readonly","https://www.googleapis.com/auth/chat.app.memberships","https://www.googleapis.com/auth/chat.bot","https://www.googleapis.com/auth/chat.memberships","https://www.googleapis.com/auth/chat.memberships.readonly"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the membership to retrieve. To get the app's own membership [by using user authentication](https://developers.google.com/workspace/ch","enum":null},{"name":"useAdminAccess","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator wit","enum":null}]},{"id":"spaces.members.list","httpMethod":"GET","path":"v1/{+parent}/members","flatPath":"v1/spaces/{spacesId}/members","description":"Lists memberships in a space. For an example, see [List users and Google Chat apps in a space](https://developers.google.com/workspace/chat/list-members). Listing memberships with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) lists memberships in ","scopes":["https://www.googleapis.com/auth/chat.admin.memberships","https://www.googleapis.com/auth/chat.admin.memberships.readonly","https://www.googleapis.com/auth/chat.app.memberships","https://www.googleapis.com/auth/chat.bot","https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.memberships","https://www.googleapis.com/auth/chat.memberships.readonly"],"required":["parent"],"parameters":[{"name":"filter","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A query filter. You can filter memberships by a member's role ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.memb","enum":null},{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"Optional. The maximum number of memberships to return. The service might return fewer than this value. If unspecified, at most 100 memberships are returned. The","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A page token, received from a previous call to list memberships. Provide this parameter to retrieve the subsequent page. When paginating, all other pa","enum":null},{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the space for which to fetch a membership list. Format: spaces/{space}","enum":null},{"name":"showGroups","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. When `true`, also returns memberships associated with a Google Group, in addition to other types of memberships. If a filter is set, Google Group memb","enum":null},{"name":"showInvited","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. When `true`, also returns memberships associated with invited members, in addition to other types of memberships. If a filter is set, invited membersh","enum":null},{"name":"useAdminAccess","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator wit","enum":null}]},{"id":"spaces.members.patch","httpMethod":"PATCH","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}/members/{membersId}","description":"Updates a membership. For an example, see [Update a user's membership in a space](https://developers.google.com/workspace/chat/update-members). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://develo","scopes":["https://www.googleapis.com/auth/chat.admin.memberships","https://www.googleapis.com/auth/chat.app.memberships","https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.memberships"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Identifier. Resource name of the membership, assigned by the server. Format: `spaces/{space}/members/{member}`","enum":null},{"name":"updateMask","type":"string","required":false,"repeated":false,"location":"query","description":"Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `role`","enum":null},{"name":"useAdminAccess","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator wit","enum":null}]},{"id":"spaces.messagePins.create","httpMethod":"POST","path":"v1/{+parent}/messagePins","flatPath":"v1/spaces/{spacesId}/messagePins","description":"Creates a message pin. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/au","scopes":["https://www.googleapis.com/auth/chat.spaces","https://www.googleapis.com/auth/chat.spaces.pins"],"required":["parent"],"parameters":[{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The parent space in which to create the message pin. Format: spaces/{space}","enum":null}]},{"id":"spaces.messagePins.delete","httpMethod":"DELETE","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}/messagePins/{messagePinsId}","description":"Deletes a message pin. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/au","scopes":["https://www.googleapis.com/auth/chat.spaces","https://www.googleapis.com/auth/chat.spaces.pins"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the message pin to remove. Format: spaces/{space}/messagePins/{message_pin}","enum":null}]},{"id":"spaces.messagePins.list","httpMethod":"GET","path":"v1/{+parent}/messagePins","flatPath":"v1/spaces/{spacesId}/messagePins","description":"Lists message pins in a space. Users can pin important messages in spaces for easy access. For more information, see [Pin or unpin a conversation in Google Chat](https://support.google.com/chat/answer/15622437). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate","scopes":["https://www.googleapis.com/auth/chat.spaces","https://www.googleapis.com/auth/chat.spaces.pins","https://www.googleapis.com/auth/chat.spaces.pins.readonly","https://www.googleapis.com/auth/chat.spaces.readonly"],"required":["parent"],"parameters":[{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"Optional. The maximum number of message pins returned. The service might return fewer messages than this value. The maximum value is 100. If you use a value mor","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A page token received from a previous list message pins call. Provide this parameter to retrieve the subsequent page. When paginating, all other param","enum":null},{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The parent space which owns the collection of pinned items Format: `spaces/{space}`","enum":null}]},{"id":"spaces.messages.attachments.get","httpMethod":"GET","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}/messages/{messagesId}/attachments/{attachmentsId}","description":"Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download). For an example, see [Get metadata about a message attachment](https://developers.google.com/workspace/chat/get-media-att","scopes":["https://www.googleapis.com/auth/chat.bot"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the attachment, in the form `spaces/{space}/messages/{message}/attachments/{attachment}`.","enum":null}]},{"id":"spaces.messages.create","httpMethod":"POST","path":"v1/{+parent}/messages","flatPath":"v1/spaces/{spacesId}/messages","description":"Creates a message in a Google Chat space. For an example, see [Send a message](https://developers.google.com/workspace/chat/create-messages). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://develope","scopes":["https://www.googleapis.com/auth/chat.bot","https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.messages","https://www.googleapis.com/auth/chat.messages.create"],"required":["parent"],"parameters":[{"name":"createMessageNotificationOptions.notificationType","type":"string","required":false,"repeated":false,"location":"query","description":"The notification type for the message.","enum":["NOTIFICATION_TYPE_NONE","NOTIFICATION_TYPE_FORCE_NOTIFY","NOTIFICATION_TYPE_SILENT"]},{"name":"messageId","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A custom ID for a message. Lets Chat apps get, update, or delete a message without needing to store the system-assigned ID in the message's resource n","enum":null},{"name":"messageReplyOption","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. Specifies whether a message starts a thread or replies to one. Only supported in named spaces. When [responding to user interactions](https://develope","enum":["MESSAGE_REPLY_OPTION_UNSPECIFIED","REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD","REPLY_MESSAGE_OR_FAIL"]},{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the space in which to create a message. Format: `spaces/{space}`","enum":null},{"name":"requestId","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A unique ID for this request. A random UUID is recommended. Specifying a request ID makes the request idempotent, which ensures that multiple identica","enum":null},{"name":"threadKey","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. Deprecated: Use thread.thread_key instead. ID for the thread. Supports up to 4000 characters. To start or add to a thread, create a message and specif","enum":null}]},{"id":"spaces.messages.delete","httpMethod":"DELETE","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}/messages/{messagesId}","description":"Deletes a message. For an example, see [Delete a message](https://developers.google.com/workspace/chat/delete-messages). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspa","scopes":["https://www.googleapis.com/auth/chat.bot","https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.messages"],"required":["name"],"parameters":[{"name":"force","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. When `true`, deleting a message also deletes its threaded replies. When `false`, if a message has threaded replies, deletion fails. Only applies when ","enum":null},{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the message. Format: `spaces/{space}/messages/{message}` If you've set a custom ID for your message, you can use the value from the `","enum":null}]},{"id":"spaces.messages.get","httpMethod":"GET","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}/messages/{messagesId}","description":"Returns details about a message. For an example, see [Get details about a message](https://developers.google.com/workspace/chat/get-messages). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://develop","scopes":["https://www.googleapis.com/auth/chat.app.messages.readonly","https://www.googleapis.com/auth/chat.bot","https://www.googleapis.com/auth/chat.messages","https://www.googleapis.com/auth/chat.messages.readonly"],"required":["name"],"parameters":[{"name":"markupSyntax","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. Specifies the desired output syntax for the Chat message `formatted_text` field.","enum":["MARKUP_SYNTAX_UNSPECIFIED","MARKUP_SYNTAX_CHAT","MARKUP_SYNTAX_MARKDOWN"]},{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the message. Format: `spaces/{space}/messages/{message}` If you've set a custom ID for your message, you can use the value from the `","enum":null}]},{"id":"spaces.messages.list","httpMethod":"GET","path":"v1/{+parent}/messages","flatPath":"v1/spaces/{spacesId}/messages","description":"Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. System messages, like those announcing new space members, aren't included. If you list messages from a space with no messages, the response is an empty object. When using a REST/HTTP interfa","scopes":["https://www.googleapis.com/auth/chat.app.messages.readonly","https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.messages","https://www.googleapis.com/auth/chat.messages.readonly"],"required":["parent"],"parameters":[{"name":"filter","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A query filter. You can filter messages by date (`create_time`) and thread (`thread.name`). To filter messages by the date they were created, specify ","enum":null},{"name":"markupSyntax","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. Specifies the desired output syntax for the Chat message `formatted_text` field.","enum":["MARKUP_SYNTAX_UNSPECIFIED","MARKUP_SYNTAX_CHAT","MARKUP_SYNTAX_MARKDOWN"]},{"name":"orderBy","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. How the list of messages is ordered. Specify a value to order by an ordering operation. Valid ordering operation values are as follows: - `ASC` for as","enum":null},{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"Optional. The maximum number of messages returned. The service might return fewer messages than this value. If unspecified, at most 25 are returned. The maximum","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A page token received from a previous list messages call. Provide this parameter to retrieve the subsequent page. When paginating, all other parameter","enum":null},{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the space to list messages from. Format: `spaces/{space}`","enum":null},{"name":"showDeleted","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. Whether to include deleted messages. Deleted messages include deleted time and metadata about their deletion, but message content is unavailable.","enum":null}]},{"id":"spaces.messages.patch","httpMethod":"PATCH","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}/messages/{messagesId}","description":"Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/workspace/chat/updat","scopes":["https://www.googleapis.com/auth/chat.bot","https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.messages"],"required":["name"],"parameters":[{"name":"allowMissing","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https:","enum":null},{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Identifier. Resource name of the message. Format: `spaces/{space}/messages/{message}` Where `{space}` is the ID of the space where the message is posted and `{m","enum":null},{"name":"updateMask","type":"string","required":false,"repeated":false,"location":"query","description":"Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `att","enum":null}]},{"id":"spaces.messages.reactions.create","httpMethod":"POST","path":"v1/{+parent}/reactions","flatPath":"v1/spaces/{spacesId}/messages/{messagesId}/reactions","description":"Creates a reaction and adds it to a message. For an example, see [Add a reaction to a message](https://developers.google.com/workspace/chat/create-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [auth","scopes":["https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.messages","https://www.googleapis.com/auth/chat.messages.reactions","https://www.googleapis.com/auth/chat.messages.reactions.create"],"required":["parent"],"parameters":[{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The message where the reaction is created. Format: `spaces/{space}/messages/{message}`","enum":null}]},{"id":"spaces.messages.reactions.delete","httpMethod":"DELETE","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}/messages/{messagesId}/reactions/{reactionsId}","description":"Deletes a reaction to a message. For an example, see [Delete a reaction](https://developers.google.com/workspace/chat/delete-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](http","scopes":["https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.messages","https://www.googleapis.com/auth/chat.messages.reactions"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Name of the reaction to delete. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`","enum":null}]},{"id":"spaces.messages.reactions.list","httpMethod":"GET","path":"v1/{+parent}/reactions","flatPath":"v1/spaces/{spacesId}/messages/{messagesId}/reactions","description":"Lists reactions to a message. For an example, see [List reactions for a message](https://developers.google.com/workspace/chat/list-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes","scopes":["https://www.googleapis.com/auth/chat.messages","https://www.googleapis.com/auth/chat.messages.reactions","https://www.googleapis.com/auth/chat.messages.reactions.readonly","https://www.googleapis.com/auth/chat.messages.readonly"],"required":["parent"],"parameters":[{"name":"filter","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A query filter. You can filter reactions by [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji) (either `emoji.unicode` ","enum":null},{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"Optional. The maximum number of reactions returned. The service can return fewer reactions than this value. If unspecified, the default value is 25. The maximum","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. (If resuming from a previous query.) A page token received from a previous list reactions call. Provide this to retrieve the subsequent page. When pag","enum":null},{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The message users reacted to. Format: `spaces/{space}/messages/{message}`","enum":null}]},{"id":"spaces.messages.search","httpMethod":"POST","path":"v1/{+parent}/messages:search","flatPath":"v1/spaces/{spacesId}/messages:search","description":"Searches for messages in Google Chat that the calling user has access to. Returns a list of messages matching the search criteria. To search across all spaces the user has access to, set `parent` to `spaces/-`. Using any other value for `parent` results in an `INVALID_ARGUMENT` error. The returned m","scopes":["https://www.googleapis.com/auth/chat.messages","https://www.googleapis.com/auth/chat.messages.readonly"],"required":["parent"],"parameters":[{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the space to search within. To search across all spaces the user has access to, set this field to `spaces/-`. Using any other val","enum":null}]},{"id":"spaces.messages.update","httpMethod":"PUT","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}/messages/{messagesId}","description":"Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/workspace/chat/updat","scopes":["https://www.googleapis.com/auth/chat.bot","https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.messages"],"required":["name"],"parameters":[{"name":"allowMissing","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. If `true` and the message isn't found, a new message is created and `updateMask` is ignored. The specified message ID must be [client-assigned](https:","enum":null},{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Identifier. Resource name of the message. Format: `spaces/{space}/messages/{message}` Where `{space}` is the ID of the space where the message is posted and `{m","enum":null},{"name":"updateMask","type":"string","required":false,"repeated":false,"location":"query","description":"Required. The field paths to update. Separate multiple values with commas or use `*` to update all field paths. Currently supported field paths: - `text` - `att","enum":null}]},{"id":"spaces.patch","httpMethod":"PATCH","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}","description":"Updates a space. For an example, see [Update a space](https://developers.google.com/workspace/chat/update-spaces). If you're updating the `displayName` field and receive the error message `ALREADY_EXISTS`, try a different display name.. An existing space within the Google Workspace organization migh","scopes":["https://www.googleapis.com/auth/chat.admin.spaces","https://www.googleapis.com/auth/chat.app.spaces","https://www.googleapis.com/auth/chat.import","https://www.googleapis.com/auth/chat.spaces"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Identifier. Resource name of the space. Format: `spaces/{space}` Where `{space}` represents the system-assigned ID for the space. You can obtain the space ID by","enum":null},{"name":"updateMask","type":"string","required":false,"repeated":false,"location":"query","description":"Required. The updated field paths, comma separated if there are multiple. You can update the following fields for a space: `space_details`: Updates the space's ","enum":null},{"name":"useAdminAccess","type":"boolean","required":false,"repeated":false,"location":"query","description":"Optional. When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator wit","enum":null}]},{"id":"spaces.search","httpMethod":"GET","path":"v1/spaces:search","flatPath":"v1/spaces:search","description":"Returns a list of spaces in a Google Workspace organization. For an example, see [Search for and manage spaces](https://developers.google.com/workspace/chat/search-manage-admin). When `use_admin_access` is set to `false`, the results are limited to spaces where the calling user is a joined member. T","scopes":["https://www.googleapis.com/auth/chat.admin.spaces","https://www.googleapis.com/auth/chat.admin.spaces.readonly","https://www.googleapis.com/auth/chat.spaces","https://www.googleapis.com/auth/chat.spaces.readonly"],"required":[],"parameters":[{"name":"orderBy","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. How the list of spaces is ordered. Supported attributes to order by are: - `membership_count.joined_direct_human_user_count` — Denotes the count of hu","enum":null},{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"The maximum number of spaces to return. The service may return fewer than this value. If unspecified, at most 100 spaces are returned. The maximum value is 1000","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"A token, received from the previous search spaces call. Provide this parameter to retrieve the subsequent page. When paginating, all other parameters provided s","enum":null},{"name":"query","type":"string","required":false,"repeated":false,"location":"query","description":"Required. A search query. You can search by using the following parameters when `useAdminAccess` is set to `true`: - `create_time` - `customer` - `display_name`","enum":null},{"name":"useAdminAccess","type":"boolean","required":false,"repeated":false,"location":"query","description":"When `true`, the method runs using the user's Google Workspace administrator privileges. The calling user must be a Google Workspace administrator with the [man","enum":null}]},{"id":"spaces.setup","httpMethod":"POST","path":"v1/spaces:setup","flatPath":"v1/spaces:setup","description":"Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see [Set up a space with initial members](https://developers.google.com/workspace/chat/set-up-spaces). To specify the human","scopes":["https://www.googleapis.com/auth/chat.spaces","https://www.googleapis.com/auth/chat.spaces.create"],"required":[],"parameters":[]},{"id":"spaces.spaceEvents.get","httpMethod":"GET","path":"v1/{+name}","flatPath":"v1/spaces/{spacesId}/spaceEvents/{spaceEventsId}","description":"Returns an event from a Google Chat space. The [event payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the resource that changed. For example, if you request an event about a new messag","scopes":["https://www.googleapis.com/auth/chat.app.all.memberships.readonly","https://www.googleapis.com/auth/chat.app.all.messages.readonly","https://www.googleapis.com/auth/chat.app.all.spaces.readonly","https://www.googleapis.com/auth/chat.app.memberships","https://www.googleapis.com/auth/chat.app.memberships.readonly","https://www.googleapis.com/auth/chat.app.messages.readonly","https://www.googleapis.com/auth/chat.app.spaces","https://www.googleapis.com/auth/chat.app.spaces.readonly","https://www.googleapis.com/auth/chat.memberships","https://www.googleapis.com/auth/chat.memberships.readonly","https://www.googleapis.com/auth/chat.messages","https://www.googleapis.com/auth/chat.messages.reactions","https://www.googleapis.com/auth/chat.messages.reactions.readonly","https://www.googleapis.com/auth/chat.messages.readonly","https://www.googleapis.com/auth/chat.spaces","https://www.googleapis.com/auth/chat.spaces.readonly"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the space event. Format: `spaces/{space}/spaceEvents/{spaceEvent}`","enum":null}]},{"id":"spaces.spaceEvents.list","httpMethod":"GET","path":"v1/{+parent}/spaceEvents","flatPath":"v1/spaces/{spacesId}/spaceEvents","description":"Lists events from a Google Chat space. For each event, the [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the Chat resource. For example, if you list events about new space members, ","scopes":["https://www.googleapis.com/auth/chat.app.all.memberships.readonly","https://www.googleapis.com/auth/chat.app.all.messages.readonly","https://www.googleapis.com/auth/chat.app.all.spaces.readonly","https://www.googleapis.com/auth/chat.app.memberships","https://www.googleapis.com/auth/chat.app.memberships.readonly","https://www.googleapis.com/auth/chat.app.messages.readonly","https://www.googleapis.com/auth/chat.app.spaces","https://www.googleapis.com/auth/chat.app.spaces.readonly","https://www.googleapis.com/auth/chat.memberships","https://www.googleapis.com/auth/chat.memberships.readonly","https://www.googleapis.com/auth/chat.messages","https://www.googleapis.com/auth/chat.messages.reactions","https://www.googleapis.com/auth/chat.messages.reactions.readonly","https://www.googleapis.com/auth/chat.messages.readonly","https://www.googleapis.com/auth/chat.spaces","https://www.googleapis.com/auth/chat.spaces.readonly"],"required":["parent"],"parameters":[{"name":"filter","type":"string","required":false,"repeated":false,"location":"query","description":"Required. A query filter. You must specify at least one event type (`event_type`) using the has `:` operator. To filter by multiple event types, use the `OR` op","enum":null},{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"Optional. The maximum number of space events returned. The service might return fewer than this value. Negative values return an `INVALID_ARGUMENT` error.","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A page token, received from a previous list space events call. Provide this to retrieve the subsequent page. When paginating, all other parameters pro","enum":null},{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the [Google Chat space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) where the events occurred. Format:","enum":null}]},{"id":"users.availability.get","httpMethod":"GET","path":"v1/{+name}","flatPath":"v1/users/{usersId}/availability","description":"Returns availability information for a human user in Google Chat. For example, this can be used to check if a user is online or away, or to retrieve their custom status message. This method only retrieves the authenticated user's availability. Requires [user authentication](https://developers.google","scopes":["https://www.googleapis.com/auth/chat.users.availability","https://www.googleapis.com/auth/chat.users.availability.readonly"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the availability to retrieve. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK ","enum":null}]},{"id":"users.availability.markAsActive","httpMethod":"POST","path":"v1/{+name}:markAsActive","flatPath":"v1/users/{usersId}/availability:markAsActive","description":"Marks user as `ACTIVE` in Google Chat. Sets the user's availability state to `ACTIVE`. The `ACTIVE` state lasts until the specified expiration, at which point the user's state becomes `AWAY`. Note that if the user is actively using Chat, the `ACTIVE` state duration may extend beyond the provided exp","scopes":["https://www.googleapis.com/auth/chat.users.availability"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the availability to mark as active. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admi","enum":null}]},{"id":"users.availability.markAsAway","httpMethod":"POST","path":"v1/{+name}:markAsAway","flatPath":"v1/users/{usersId}/availability:markAsAway","description":"Marks user as `AWAY` in Google Chat. Sets the user's state to away and is not affected by the user's activity. This method only updates the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with [authoriza","scopes":["https://www.googleapis.com/auth/chat.users.availability"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the availability to mark as away. Format: users/{user}/availability `{user}` is the id for the Person in the People API or Admin ","enum":null}]},{"id":"users.availability.markAsDoNotDisturb","httpMethod":"POST","path":"v1/{+name}:markAsDoNotDisturb","flatPath":"v1/users/{usersId}/availability:markAsDoNotDisturb","description":"Marks user as `DO_NOT_DISTURB` in Google Chat. Sets a user's availability state to `DO_NOT_DISTURB` until a specified expiration time. When in `DO_NOT_DISTURB`, users typically won't receive notifications. This method only updates the authenticated user's availability. Requires [user authentication]","scopes":["https://www.googleapis.com/auth/chat.users.availability"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the availability to mark as Do Not Disturb. Format: users/{user}/availability `{user}` is the id for the Person in the People API","enum":null}]},{"id":"users.availability.patch","httpMethod":"PATCH","path":"v1/{+name}","flatPath":"v1/users/{usersId}/availability","description":"Updates availability information for a human user. Only the `custom_status` field can be updated through this method. This method only updates the authenticated user's availability. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one","scopes":["https://www.googleapis.com/auth/chat.users.availability"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Identifier. Resource name of the user's availability. Format: `users/{user}/availability` `{user}` is the id for the Person in the People API or Admin SDK direc","enum":null},{"name":"updateMask","type":"string","required":false,"repeated":false,"location":"query","description":"Required. The list of fields to update. The only field that can be updated is `custom_status`.","enum":null}]},{"id":"users.sections.create","httpMethod":"POST","path":"v1/{+parent}/sections","flatPath":"v1/users/{usersId}/sections","description":"Creates a section in Google Chat. Sections help users group conversations and customize the list of spaces displayed in Chat navigation panel. Only sections of type `CUSTOM_SECTION` can be created. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/","scopes":["https://www.googleapis.com/auth/chat.users.sections"],"required":["parent"],"parameters":[{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The parent resource name where the section is created. Format: `users/{user}`","enum":null}]},{"id":"users.sections.delete","httpMethod":"DELETE","path":"v1/{+name}","flatPath":"v1/users/{usersId}/sections/{sectionsId}","description":"Deletes a section of type `CUSTOM_SECTION`. If the section contains items, such as spaces, the items are moved to Google Chat's default sections and are not deleted. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authen","scopes":["https://www.googleapis.com/auth/chat.users.sections"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The name of the section to delete. Format: `users/{user}/sections/{section}`","enum":null}]},{"id":"users.sections.items.list","httpMethod":"GET","path":"v1/{+parent}/items","flatPath":"v1/users/{usersId}/sections/{sectionsId}/items","description":"Lists items in a section. Only spaces can be section items. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authori","scopes":["https://www.googleapis.com/auth/chat.users.sections","https://www.googleapis.com/auth/chat.users.sections.readonly"],"required":["parent"],"parameters":[{"name":"filter","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A query filter. Currently only supports filtering by space. For example, `space = spaces/{space}`. Invalid queries are rejected with an `INVALID_ARGUM","enum":null},{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"Optional. The maximum number of section items to return. The service may return fewer than this value. If unspecified, at most 10 section items will be returned","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A page token, received from a previous list section items call. Provide this to retrieve the subsequent page. When paginating, all other parameters pr","enum":null},{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The parent, which is the section resource name that owns this collection of section items. Only supports listing section items for the calling user. W","enum":null}]},{"id":"users.sections.items.move","httpMethod":"POST","path":"v1/{+name}:move","flatPath":"v1/users/{usersId}/sections/{sectionsId}/items/{itemsId}:move","description":"Moves an item from one section to another. For example, if a section contains spaces, this method can be used to move a space to a different section. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https:","scopes":["https://www.googleapis.com/auth/chat.users.sections"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the section item to move. Format: `users/{user}/sections/{section}/items/{item}`","enum":null}]},{"id":"users.sections.list","httpMethod":"GET","path":"v1/{+parent}/sections","flatPath":"v1/users/{usersId}/sections","description":"Lists sections available to the Chat user. Sections help users group their conversations and customize the list of spaces displayed in Chat navigation panel. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication","scopes":["https://www.googleapis.com/auth/chat.users.sections","https://www.googleapis.com/auth/chat.users.sections.readonly"],"required":["parent"],"parameters":[{"name":"pageSize","type":"integer","required":false,"repeated":false,"location":"query","description":"Optional. The maximum number of sections to return. The service may return fewer than this value. If unspecified, at most 10 sections will be returned. The maxi","enum":null},{"name":"pageToken","type":"string","required":false,"repeated":false,"location":"query","description":"Optional. A page token, received from a previous list sections call. Provide this to retrieve the subsequent page. When paginating, all other parameters provide","enum":null},{"name":"parent","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The parent, which is the user resource name that owns this collection of sections. Only supports listing sections for the calling user. To refer to th","enum":null}]},{"id":"users.sections.patch","httpMethod":"PATCH","path":"v1/{+name}","flatPath":"v1/users/{usersId}/sections/{sectionsId}","description":"Updates a section. Only sections of type `CUSTOM_SECTION` can be updated. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) wit","scopes":["https://www.googleapis.com/auth/chat.users.sections"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Identifier. Resource name of the section. For system sections, the section ID is a constant string: - DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-di","enum":null},{"name":"updateMask","type":"string","required":false,"repeated":false,"location":"query","description":"Required. The mask to specify which fields to update. Currently supported field paths: - `display_name`","enum":null}]},{"id":"users.sections.position","httpMethod":"POST","path":"v1/{+name}:position","flatPath":"v1/users/{usersId}/sections/{sectionsId}:position","description":"Changes the sort order of a section. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://d","scopes":["https://www.googleapis.com/auth/chat.users.sections"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. The resource name of the section to position. Format: `users/{user}/sections/{section}`","enum":null}]},{"id":"users.spaces.getSpaceReadState","httpMethod":"GET","path":"v1/{+name}","flatPath":"v1/users/{usersId}/spaces/{spacesId}/spaceReadState","description":"Returns details about a user's read state within a space, used to identify read and unread messages. For an example, see [Get details about a user's space read state](https://developers.google.com/workspace/chat/get-space-read-state). Requires [user authentication](https://developers.google.com/work","scopes":["https://www.googleapis.com/auth/chat.users.readstate","https://www.googleapis.com/auth/chat.users.readstate.readonly"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the space read state to retrieve. Only supports getting read state for the calling user. To refer to the calling user, set one of the","enum":null}]},{"id":"users.spaces.spaceNotificationSetting.get","httpMethod":"GET","path":"v1/{+name}","flatPath":"v1/users/{usersId}/spaces/{spacesId}/spaceNotificationSetting","description":"Gets the space notification setting. For an example, see [Get the caller's space notification setting](https://developers.google.com/workspace/chat/get-space-notification-setting). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the ","scopes":["https://www.googleapis.com/auth/chat.users.spacesettings"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Format: users/{user}/spaces/{space}/spaceNotificationSetting - `users/me/spaces/{space}/spaceNotificationSetting`, OR - `users/user@example.com/spaces","enum":null}]},{"id":"users.spaces.spaceNotificationSetting.patch","httpMethod":"PATCH","path":"v1/{+name}","flatPath":"v1/users/{usersId}/spaces/{spacesId}/spaceNotificationSetting","description":"Updates the space notification setting. For an example, see [Update the caller's space notification setting](https://developers.google.com/workspace/chat/update-space-notification-setting). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) ","scopes":["https://www.googleapis.com/auth/chat.users.spacesettings"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Identifier. The resource name of the space notification setting. Format: `users/{user}/spaces/{space}/spaceNotificationSetting`.","enum":null},{"name":"updateMask","type":"string","required":false,"repeated":false,"location":"query","description":"Required. Supported field paths: - `notification_setting` - `mute_setting`","enum":null}]},{"id":"users.spaces.threads.getThreadReadState","httpMethod":"GET","path":"v1/{+name}","flatPath":"v1/users/{usersId}/spaces/{spacesId}/threads/{threadsId}/threadReadState","description":"Returns details about a user's read state within a thread, used to identify read and unread messages. For an example, see [Get details about a user's thread read state](https://developers.google.com/workspace/chat/get-thread-read-state). Requires [user authentication](https://developers.google.com/w","scopes":["https://www.googleapis.com/auth/chat.users.readstate","https://www.googleapis.com/auth/chat.users.readstate.readonly"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Required. Resource name of the thread read state to retrieve. Only supports getting read state for the calling user. To refer to the calling user, set one of th","enum":null}]},{"id":"users.spaces.updateSpaceReadState","httpMethod":"PATCH","path":"v1/{+name}","flatPath":"v1/users/{usersId}/spaces/{spacesId}/spaceReadState","description":"Updates a user's read state within a space, used to identify read and unread messages. For an example, see [Update a user's space read state](https://developers.google.com/workspace/chat/update-space-read-state). Requires [user authentication](https://developers.google.com/workspace/chat/authenticat","scopes":["https://www.googleapis.com/auth/chat.users.readstate"],"required":["name"],"parameters":[{"name":"name","type":"string","required":true,"repeated":false,"location":"path","description":"Resource name of the space read state. Format: `users/{user}/spaces/{space}/spaceReadState`","enum":null},{"name":"updateMask","type":"string","required":false,"repeated":false,"location":"query","description":"Required. The field paths to update. Currently supported field paths: - `last_read_time` When the `last_read_time` is before the latest message create time, the","enum":null}]}]}