invite_members_to_org

imerit_ango.sdk.SDK.

invite_members_to_org(organization_id, invite_data)

Send invitations to new members to join the specified organization.

Parameters

  • organization_id: string

    • The unique identifier for the organization. You can find the organization ID in the user interface.

  • invite_data: Invitation

    • An Invitation object containing the invitation details, with the following attributes:

    • to: List[str]

      • List of email addresses of the invited members

    • organization_role: OrganizationRoles

      • The role assigned to the invited members within the organization. Options include:

        • OrganizationRoles.Admin

        • OrganizationRoles.Member

    • project_assignments: List[ProjectAssignment], Optional, default None

      • ProjectAssignment

        • project_id: string

        • project_role: ProjectRoles

          • The role assigned to the invited members within the project. Options include:

            • ProjectRoles.Manager

            • ProjectRoles.Labeler

            • ProjectRoles.Reviewer

            • ProjectRoles.Lead

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

Example

Last updated