import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const response = await client.websites.websiteUserRoles.assign({
websiteId: '123e4567-e89b-12d3-a456-426614174000',
websiteUserRoles: [
{ roleType: 'WEBSITE_SUPER_ADMIN', walletAddress: '0x1234567890abcdef1234567890abcdef12345678' },
],
});
console.log(response.data);
{
"data": "<any>"
}
Assign roles to users for a specific website
import SnagSolutions from '@snagsolutions/sdk';
const client = new SnagSolutions({
apiKey: 'My API Key',
});
const response = await client.websites.websiteUserRoles.assign({
websiteId: '123e4567-e89b-12d3-a456-426614174000',
websiteUserRoles: [
{ roleType: 'WEBSITE_SUPER_ADMIN', walletAddress: '0x1234567890abcdef1234567890abcdef12345678' },
],
});
console.log(response.data);
{
"data": "<any>"
}
Body
Query parameters for getWebsiteUserRoles
200
Schema for postWebsiteUserRoles response
Was this page helpful?