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" } }
Revoke a user from an organization
Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>
The organization id previously created
The user to revoke
A successful response
The response is of type object.
object