GET
/
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 websiteUserRoles = await client.websites.websiteUserRoles.list({
  websiteId: '123e4567-e89b-12d3-a456-426614174000',
});

console.log(websiteUserRoles.data);
{
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000"
    }
  ]
}

Authorizations

X-API-KEY
string
header
required

Query Parameters

websiteId
string
required

UUID of the website

Example:

"123e4567-e89b-12d3-a456-426614174000"

userId
string

UUID of the user

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

200
application/json

200

Schema for getWebsiteUserRoles response