import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const response = await client.users.disconnect({
organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
userId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
});
console.log(response.message);
{
"message": "Success"
}
This endpoint allows you to disconnect a user from another user
import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const response = await client.users.disconnect({
organizationId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
userId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
websiteId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
});
console.log(response.message);
{
"message": "Success"
}
Body
Schema for a disconnect user schema
200
The response is of type object
.
Was this page helpful?