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

delete_organization_members

imerit_ango.sdk.SDK.

delete_organization_members(organization_id, member_emails)

Remove specified members from your organization.

Parameters

  • organization_id: string

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

  • member_emails: List[str]

    • A list of email addresses of the members you want to remove from the organization.

    • 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)

ango_sdk.delete_organization_members(
    organization_id=organization_id,
    member_emails=["user1@example.com", "user2@example.com"]
)
curl -X DELETE "https://imeritapi.ango.ai/v2/organization/$ORGANIZATION_ID/users" \
  -H "Content-Type: application/json" \
  -H "apikey: $ANGO_API_KEY" \
  -d '{
    "users": ["user1@example.com", "user2@example.com"]
  }'

Last updated