delete_organization_invites

imerit_ango.sdk.SDK.

delete_organization_invites(organization_id, invite_emails)

Withdraw pending invitations for the specified users.

Parameters

  • organization_id: string

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

  • invite_emails: List[string]

    • A list of email addresses of users whose invitations you wish to withdraw.

    • Example: ["user1@example.com", "user2@example.com"]

Returns:

  • output: dict

Example

import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
organization_id = os.getenv('ORGANIZATION_ID')

ango_sdk = SDK(api_key)

sdk_respose = ango_sdk.delete_organization_invites(organization_id=organization_id,
                                                   invite_emails=["user@example.com"])

Last updated