Resource: Space
A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app.
JSON representation |
---|
{ "name": string, "type": enum ( |
Fields | |
---|---|
name |
Resource name of the space. Format: spaces/{space} |
type |
Output only. Deprecated: Use The type of a space. |
spaceType |
The type of space. Required when creating a space. Output only for other usage. |
singleUserBotDm |
Output only. Whether the space is a DM between a Chat app and a single human. |
threaded |
Output only. Whether messages are threaded in this space. |
displayName |
The space's display name. For direct messages between humans, this field might be empty. |
spaceDetails |
Details about the space including description and rules. |
Type
Deprecated: The type of a space. Use singleUserBotDm
or spaceType
(developer preview) instead.
Enums | |
---|---|
TYPE_UNSPECIFIED |
|
ROOM |
Conversations between two or more humans. |
DM |
1:1 Direct Message between a human and a Chat app, where all messages are flat. Note that this does not include direct messages between two humans. |
SpaceType
The type of space. Required when creating a space. Output only for other usage.
Enums | |
---|---|
SPACE_TYPE_UNSPECIFIED |
Reserved. |
SPACE |
A place where people send messages, share files, and collaborate. A SPACE can include Chat apps. |
GROUP_CHAT |
Group conversations between 3 or more people. A GROUP_CHAT can include Chat apps. |
DIRECT_MESSAGE |
1:1 messages between two humans or a human and a Chat app. |
SpaceDetails
Details about the space including description and rules.
JSON representation |
---|
{ "description": string, "guidelines": string } |
Fields | |
---|---|
description |
Optional. A description of the space. It could describe the space's discussion topic, functional purpose, or participants. |
guidelines |
Optional. The space's rules, expectations, and etiquette. |
Methods |
|
---|---|
|
Creates a named space. |
|
Returns a space. |
|
Lists spaces the caller is a member of. |
|
Legacy path for creating message. |