Claude Platform Docs

刪除邀請

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

刪除待處理的邀請。

Parameters
invite_id: String⁠Path parameter

ID of the Invite.

Returns
class InviteDeleteResponse { type: :invite_deleted, id }
type: :invite_deleted

Deleted object type.

For Invites, this is always "invite_deleted".

id: String

ID of the Invite.

刪除邀請
require "anthropic"

anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")

invite = anthropic.beta.organization.invites.delete("invite_id")

puts(invite)
Returns Examples
Response 200
{
  "id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
  "type": "invite_deleted"
}