Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

Create an invitation

POST/v1/organizations/{organizationId}/invitations

Creates organization invitation.

Authorizations

Path parameters

  • organizationIdstringrequired

    ID of the organization to invite a user to.

    format: uuid

Request bodyJSON

  • emailoptionalstring

    Email of the invited user. Only a user with this email can join using the invitation. The email is stored in a lowercase form.

    format: email
  • roledeprecatedadminordeveloper

    DEPRECATED. Use assignedRoleIds instead. Role to assign to the invited user in the organization.

  • assignedRoleIdsoptionalarray ofstring

    List of role IDs to assign to the invited user when they accept the invitation

Response

JSON

200

Successful response

JSON
  • statusoptionalnumber

    HTTP status code.

    Example: 200
  • requestIdoptionalstring

    Unique id assigned to every request. UUIDv4

    format: uuid
  • resultoptionalobject
    6 properties
    • roledeprecatedadminordeveloper

      DEPRECATED. Use assignedRoles instead. Role of the invited user in the organization. For organizations that have migrated to custom roles, this field is frozen at the pre-migration value and does not reflect the role assignment that will be applied.

    • idoptionalstring

      Unique invitation ID.

      format: uuid
    • emailoptionalstring

      Email of the invited user. Only a user with this email can join using the invitation. The email is stored in a lowercase form.

      format: email
    • createdAtoptionalstring

      Invitation creation timestamp. ISO-8601.

      format: date-time
    • expireAtoptionalstring

      Timestamp the invitation expires. ISO-8601.

      format: date-time
    • assignedRolesoptionalarray ofobject

      Custom roles and System roles that will be assigned to the user when they accept the invitation

      3 properties
      • roleIdoptionalstring

        Unique identifier of the role

        format: uuid
      • roleNameoptionalstring

        Human-readable name of the role

      • roleTypeoptionalsystemorcustom

        Type of role: system (predefined) or custom (organization-defined)

Navigation