SpaceService

POST /api/spaces/{space}/invitations

Changed on

CreateSpaceInvitation invites an existing active user to a space. Only a space administrator can invite. The invitee gets no space access until they accept.

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

spacestring required

The space id.

Request body

namestring

Identifier. The resource name of the invitation. The invitation segment is the invitee's username. Format: spaces/{space}/invitations/{invitation}

inviteestring required

Required. The invited user. Format: users/{user}

role'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER' enum required

Required. The role the user receives after accepting the invitation.

Response

OK

namestring

Identifier. The resource name of the invitation. The invitation segment is the invitee's username. Format: spaces/{space}/invitations/{invitation}

inviteestring required

Required. The invited user. Format: users/{user}

role'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER' enum required

Required. The role the user receives after accepting the invitation.

Changes