DELETE
/
organizations
/
{id}
/
invitations
/
{invitation_id}
TypeScript
import Nuntly from '@nuntly/sdk';

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

const invitation = await client.organizations.invitations.delete('id', 'invitation_id');

console.log(invitation.id);
{
  "data": {
    "id": "org_01jh6jk82zjq9deye73h0mzcaq",
    "invitation_id": "invit_01jnxn8wd3gvcr98yscpctd9vw",
    "kind": "invitation"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

The organization id

invitation_id
string
required

The invitation id

Response

200
application/json

A successful response

The response is of type object.