Claude Platform Docs

Einladung löschen

beta.organization.invites.delete(invite_id) -> InviteDeleteResponse
DELETE/v1/organizations/invites/{invite_id}

Löscht eine ausstehende Einladung.

Parameters
invite_id: str⁠Path parameter

ID of the Invite.

Returns
class InviteDeleteResponse: type: "invite_deleted"; id
type: Literal["invite_deleted"]

Deleted object type.

For Invites, this is always "invite_deleted".

defaultinvite_deleted
id: str

ID of the Invite.

Einladung löschen
import os
from anthropic import Anthropic

client = Anthropic(
    api_key=os.environ.get(
        "ANTHROPIC_API_KEY"
    ),  # This is the default and can be omitted
)
invite = client.beta.organization.invites.delete(
    "invite_id",
)
print(invite.id)
Returns Examples
Response 200
{
  "id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
  "type": "invite_deleted"
}