Skip to main content
POST
/
api
/
website_user_roles
Assign roles to users for a website
curl --request POST \
  --url https://admin.snagsolutions.io/api/website_user_roles \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "websiteId": "123e4567-e89b-12d3-a456-426614174000"
}
'
{
  "data": "<unknown>"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json

Body

Query parameters for getWebsiteUserRoles

websiteId
string<uuid>
required

UUID of the website

Example:

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

websiteUserRoles
Website User Roles · object[]
required

Array of website user roles

Example:
[
{
"walletAddress": "0x1234567890abcdef1234567890abcdef12345678",
"roleType": "WEBSITE_SUPER_ADMIN"
}
]

Response

200

Schema for postWebsiteUserRoles response

data
unknown