For the complete documentation index, see llms.txt. This page is also available as Markdown.

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[str]

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

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

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

    • Including a status field indicating whether the request was successful and a data field containing the response payload with updated resources produced by the operation.

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"]
)
curl -X DELETE "https://imeritapi.ango.ai/v2/organization/$ORGANIZATION_ID/invites" \
  -H "Content-Type: application/json" \
  -H "apikey: $ANGO_API_KEY" \
  -d '{
    "invites": ["user@example.com"]
  }'

Last updated