Snag Docs logo

Assign roles to users for a website

Assign roles to users for a specific website

POSThttps://admin.snagsolutions.io/api/website_user_roles

Assign roles to users for a specific website

Loading code example
Loading code example

Authorizations

apiKeyAuthstringheaderrequired

API key passed in the header.

Body

Body

websiteIdstring<uuid>required

UUID of the website

websiteUserRolesarray<object>required

Array of website user roles

websiteUserRoles.walletAddressstringrequired

Wallet address of the user

websiteUserRoles.roleType"WEBSITE_SUPER_ADMIN" | "WEBSITE_ADMIN" | "WEBSITE_MODERATOR" | "WEBSITE_API_KEY" | "STRATUS_API_KEY" | "WEBSITE_READ_ONLY_API_KEY" | "ORGANIZATION_API_KEY"required

Role type of the user

Allowed values: "WEBSITE_SUPER_ADMIN" | "WEBSITE_ADMIN" | "WEBSITE_MODERATOR" | "WEBSITE_API_KEY" | "STRATUS_API_KEY" | "WEBSITE_READ_ONLY_API_KEY" | "ORGANIZATION_API_KEY"
websiteUserRoles.deletedAtstring

Deletion date of the user role

Response

application/json

200

dataany