POST
/
api
/
website_user_roles
import SnagSolutions from '@snagsolutions/sdk';

const client = new SnagSolutions({
  apiKey: process.env['X_API_KEY'], // This is the default and can be omitted
});

const response = await client.websites.websiteUserRoles.assign({
  websiteId: '123e4567-e89b-12d3-a456-426614174000',
  websiteUserRoles: [
    { roleType: 'WEBSITE_ADMIN', walletAddress: '0x1234567890abcdef1234567890abcdef12345678' },
  ],
});

console.log(response.data);
{
  "data": "<any>"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Body

Query parameters for getWebsiteUserRoles

Response

200
application/json

200

Schema for postWebsiteUserRoles response