DELETE
/
organizations
/
{id}
/
memberships
/
{user_id}
TypeScript
import Nuntly from '@nuntly/sdk';

const client = new Nuntly({
  apiKey: 'My API Key',
});

const response = await client.organizations.memberships.revoke('id', 'user_id');

console.log(response.org_id);
{
  "data": {
    "org_id": "org_01jh6jk82zjq9deye73h0mzcaq",
    "user_id": "user_01jh6jk831bzen14edngw38we9",
    "kind": "org-membership"
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>

Path Parameters

id
string
required

The organization id previously created

user_id
string
required

The user to revoke

Response

200
application/json

A successful response

The response is of type object.