Access

Website roles

Website roles apply to signed-in public-site members. They are defined on a user-kind object type at /objects/{objectTypeId}/user-roles.

Operations

GET | POST

List or create roles for a user-kind object type.

GET|POST /api/v1/en/{websiteId}/objects/{objectTypeId}/user-roles

Use the following request body shape:

{
  "label": "string",
  "permissions": {}
}

GET | PUT | DELETE

Read, update, or delete a website role.

GET|PUT|DELETE /api/v1/en/{websiteId}/objects/{objectTypeId}/user-roles/{roleId}

MCP

MCP: list/get/create/update/delete_user_role, assign_user_role.

Object types

Create a user-kind object type first if the site does not already have one.