SuperTokens · Schema

CreateRoleRequest

AuthenticationOpen SourceSession ManagementSocial LoginPasswordlessIdentityAuthorizationMulti-TenancyNode.jsSelf-Hosted

Properties

Name Type Description
role string
permissions array
View JSON Schema on GitHub

JSON Schema

supertokens-createrolerequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CreateRoleRequest",
  "title": "CreateRoleRequest",
  "type": "object",
  "required": [
    "role"
  ],
  "properties": {
    "role": {
      "type": "string"
    },
    "permissions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}