Stytch · Schema

api_consumer_rbac_v1_PolicyScopePermission

AuthenticationIdentityPasswordlessSecurityB2BConnected AppsMCPAI AgentsDeveloper Tools

Properties

Name Type Description
resource_id string A unique identifier of the RBAC Resource, provided by the developer and intended to be human-readable. A `resource_id` is not allowed to start with `stytch`, which is a special prefix used for Stytch
actions array A list of permitted actions the Scope is required to take with the provided Resource. You can use `*` as a wildcard to require a Scope permission to use all possible actions related to the Resource.
View JSON Schema on GitHub

JSON Schema

stytch-api-consumer-rbac-v1-policyscopepermission-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/api_consumer_rbac_v1_PolicyScopePermission",
  "title": "api_consumer_rbac_v1_PolicyScopePermission",
  "type": "object",
  "properties": {
    "resource_id": {
      "type": "string",
      "description": "A unique identifier of the RBAC Resource, provided by the developer and intended to be human-readable.\n\n  A `resource_id` is not allowed to start with `stytch`, which is a special prefix used for Stytch default Resources with reserved `resource_id`s.\n  "
    },
    "actions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of permitted actions the Scope is required to take with the provided Resource. You can use `*` as a wildcard to require a Scope permission to use all possible actions related to the Resource. "
    }
  },
  "required": [
    "resource_id",
    "actions"
  ]
}