{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/runpanther-io/json-schema/runpanther-io-post-roles-request-schema.json",
  "title": "PostRolesRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/runpanther-io-openapi-generated.yml#/components/schemas/PostRolesRequest",
  "type": "object",
  "properties": {
    "logTypeAccess": {
      "type": "array",
      "description": "The log types that the role can or cannot access, according to the `logTypeAccessKind` field. This field should be omitted if `logTypeAccessKind` has a value of `ALLOW_ALL` or `DENY_ALL`"
    },
    "logTypeAccessKind": {
      "type": "string",
      "description": "Defines the role's access to log types. This field is required and has effect only if the datalake RBAC feature is enabled."
    },
    "name": {
      "type": "string",
      "description": "The name of the role"
    },
    "permissions": {
      "type": "array",
      "description": "List of permission strings"
    }
  },
  "required": [
    "logTypeAccessKind",
    "name",
    "permissions"
  ]
}