Class SpacesResource.CreateRequest
Creates a space with no members. Can be used to create a named space, or a group chat in Import mode
.
Spaces grouped by topics aren't supported. For an example, see Create a
space. If you receive the error message
ALREADY_EXISTS
when creating a space, try a different displayName
. An existing space within the Google
Workspace organization might already use this display name. Supports the following types of
authentication: - App
authentication with
administrator approval in Developer
Preview - User
authentication When
authenticating as an app, the space.customer
field must be set in the request.
Inheritance
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class SpacesResource.CreateRequest : HangoutsChatBaseServiceRequest<Space>, IClientServiceRequest<Space>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Space)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Space body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Space | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RequestId
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.
Declaration
[RequestParameter("requestId", RequestParameterType.Query)]
public virtual string RequestId { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()