Show examples in:
    Delete an invitation

    Returns

    Returns a site_invitation resource object.

    Examples

    Example code:
    import { buildClient } from '@datocms/cma-client-node';
    async function run() {
    const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
    const siteInvitationId = '312';
    const siteInvitation = await client.siteInvitations.destroy(siteInvitationId);
    console.log(siteInvitation);
    }
    run();
    Returned output:
    {
    id: '312',
    email: 'mark.smith@example.com',
    role: {
    type: 'role',
    id: '34'
    }
    }