DocumentationAPI reference

Rust · 0.1.0

SpaceInvitation

Application protocol schema. Field names and inherited descriptions are kept in their original language.

Where this schema is used

These links are derived from direct references in the protocol snapshot. Follow the calling operation for authentication, accepted fields and runtime behavior; a reusable resource schema is not by itself a complete write request.

Referenced by these component schemas:

Shape and fields

object

SpaceInvitation is a pending invitation for an existing user to join a space.

FieldType / requirementDescription
namestringThe resource name. Format: spaces/{space}/invitations/{username}.
inviteestring
Required
Required. The invited user. Format: users/{username}.
rolestring (enum)
ROLE_UNSPECIFIED · ADMIN · USER
Required
Required. The role the user will receive after accepting the invitation.
spaceallOf
Space
Output only. The Space the user is invited to. This lets an invitee understand the invitation without granting membership-based GetSpace access.

Complete schema

Use this complete JSON definition for constraints and nested structure. A field's presence here does not mean it is writable by every caller.

{
  "required": [
    "invitee",
    "role"
  ],
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The resource name. Format: spaces/{space}/invitations/{username}."
    },
    "invitee": {
      "type": "string",
      "description": "Required. The invited user. Format: users/{username}."
    },
    "role": {
      "enum": [
        "ROLE_UNSPECIFIED",
        "ADMIN",
        "USER"
      ],
      "type": "string",
      "description": "Required. The role the user will receive after accepting the invitation.",
      "format": "enum"
    },
    "space": {
      "readOnly": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/Space"
        }
      ],
      "description": "Output only. The Space the user is invited to. This lets an invitee\n understand the invitation without granting membership-based GetSpace access."
    }
  },
  "description": "SpaceInvitation is a pending invitation for an existing user to join a space."
}