Rimuovi utente
DELETE/v1/organizations/users/{user_id}
Rimuovi un membro dall'organizzazione.
Parameters
Returns
Rimuovi utente
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});
const user = await client.organization.users.remove("user_id");
console.log(user.id);Response 200
{
"id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
"type": "user_deleted"
}Returns Examples
Response 200
{
"id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
"type": "user_deleted"
}