Snag Docs logo

Get roles of users for a website

Retrieves roles of users for a specific website. If userId is provided, retrieves the role of that specific user for the website.

GEThttps://admin.snagsolutions.io/api/website_user_roles
Loading code example
Loading code example

Authorizations

apiKeyAuthstringheaderrequired

API key passed in the header.

Query Parameters

websiteIdstring<uuid>required

UUID of the website

userIdstring<uuid>

UUID of the user

Response

application/json

200

dataarray<object>required
data.idstring<uuid>required

UUID of the website user role

GET /api/website_user_roles — query parameters: websiteId, userId