Required. ThedisplayNameandspaceTypefields must be populated. OnlySpaceType.SPACEandSpaceType.GROUP_CHATare supported.SpaceType.GROUP_CHATcan only be used ifimportModeis set to true. If you receive the error messageALREADY_EXISTS, try a differentdisplayName. An existing space within the Google Workspace organization might already use this display name. The spacenameis assigned on the server so anything specified in this field will be ignored.
↳ request_id
string
Optional. A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error.
getSpace
Required. ThedisplayNameandspaceTypefields must be populated. OnlySpaceType.SPACEandSpaceType.GROUP_CHATare supported.
SpaceType.GROUP_CHATcan only be used ifimportModeis set to true.
If you receive the error messageALREADY_EXISTS,
try a differentdisplayName. An existing space within the Google
Workspace organization might already use this display name.
The spacenameis assigned on the server so anything specified in this
field will be ignored.
Required. ThedisplayNameandspaceTypefields must be populated. OnlySpaceType.SPACEandSpaceType.GROUP_CHATare supported.
SpaceType.GROUP_CHATcan only be used ifimportModeis set to true.
If you receive the error messageALREADY_EXISTS,
try a differentdisplayName. An existing space within the Google
Workspace organization might already use this display name.
The spacenameis assigned on the server so anything specified in this
field will be ignored.
A random UUID is recommended.
Specifying an existing request ID returns the space created with that ID
instead of creating a new space.
Specifying an existing request ID from the same Chat app with a different
authenticated user returns an error.
Returns
Type
Description
string
setRequestId
Optional. A unique identifier for this request.
A random UUID is recommended.
Specifying an existing request ID returns the space created with that ID
instead of creating a new space.
Specifying an existing request ID from the same Chat app with a different
authenticated user returns an error.
Required. ThedisplayNameandspaceTypefields must be populated. OnlySpaceType.SPACEandSpaceType.GROUP_CHATare supported.SpaceType.GROUP_CHATcan only be used ifimportModeis set to true.
If you receive the error messageALREADY_EXISTS,
try a differentdisplayName. An existing space within the Google
Workspace organization might already use this display name.
The spacenameis assigned on the server so anything specified in this
field will be ignored.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class CreateSpaceRequest (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Chat.V1.CreateSpaceRequest)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Chat.V1.CreateSpaceRequest)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Chat.V1.CreateSpaceRequest)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Chat.V1.CreateSpaceRequest)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Chat.V1.CreateSpaceRequest)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Chat.V1.CreateSpaceRequest)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Chat.V1.CreateSpaceRequest)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Chat.V1.CreateSpaceRequest)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Chat.V1.CreateSpaceRequest)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Chat.V1.CreateSpaceRequest)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Chat.V1.CreateSpaceRequest)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Chat.V1.CreateSpaceRequest) \nReference documentation and code samples for the Google Apps Chat V1 Client class CreateSpaceRequest.\n\nA request to create a named space with no members.\n\nGenerated from protobuf message `google.chat.v1.CreateSpaceRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Chat \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSpace\n\nRequired. The `displayName` and `spaceType` fields must be populated. Only\n`SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported.\n\n`SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.\nIf you receive the error message `ALREADY_EXISTS`,\ntry a different `displayName`. An existing space within the Google\nWorkspace organization might already use this display name.\nThe space `name` is assigned on the server so anything specified in this\nfield will be ignored.\n\n### hasSpace\n\n### clearSpace\n\n### setSpace\n\nRequired. The `displayName` and `spaceType` fields must be populated. Only\n`SpaceType.SPACE` and `SpaceType.GROUP_CHAT` are supported.\n\n`SpaceType.GROUP_CHAT` can only be used if `importMode` is set to true.\nIf you receive the error message `ALREADY_EXISTS`,\ntry a different `displayName`. An existing space within the Google\nWorkspace organization might already use this display name.\nThe space `name` is assigned on the server so anything specified in this\nfield will be ignored.\n\n### getRequestId\n\nOptional. A unique identifier for this request.\n\nA random UUID is recommended.\nSpecifying an existing request ID returns the space created with that ID\ninstead of creating a new space.\nSpecifying an existing request ID from the same Chat app with a different\nauthenticated user returns an error.\n\n### setRequestId\n\nOptional. A unique identifier for this request.\n\nA random UUID is recommended.\nSpecifying an existing request ID returns the space created with that ID\ninstead of creating a new space.\nSpecifying an existing request ID from the same Chat app with a different\nauthenticated user returns an error.\n\n### static::build"]]