SpaceService

CreateSpace creates a space and makes the authenticated caller its first administrator.

post/api/v1/spaces

Query parameters

spaceIdstring

Optional. The space UID to use for this space. If empty, a canonical UUID v4 will be generated. Format: ^a-zA-Z0-9?$

Request body

namestring

The resource name of the space. Format: spaces/{space}.

titlestring required

Required. The human-readable title.

descriptionstring

Optional. A description of the space.

currentUserRole'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER' enum

Output only. The authenticated user's membership role in this space. ROLE_UNSPECIFIED when this Space is exposed as metadata-only.

memberCountinteger

Output only. The number of accepted members in this space. Pending invitations are excluded. Zero when this Space is exposed as metadata-only.

Response

OK

namestring

The resource name of the space. Format: spaces/{space}.

titlestring required

Required. The human-readable title.

descriptionstring

Optional. A description of the space.

currentUserRole'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER' enum

Output only. The authenticated user's membership role in this space. ROLE_UNSPECIFIED when this Space is exposed as metadata-only.

memberCountinteger

Output only. The number of accepted members in this space. Pending invitations are excluded. Zero when this Space is exposed as metadata-only.

Changes