{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/calypsoai-com/json-schema/calypsoai-com-patch-auth-role-body-schema.json",
  "title": "PatchAuthRoleBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/calypsoai-com-auth-api-openapi.yml#/components/schemas/PatchAuthRoleBody",
  "properties": {
    "isDefault": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Set the new role as the default.",
      "title": "Isdefault"
    },
    "name": {
      "anyOf": [
        {
          "maxLength": 100,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "New name of the role. Requires case insensitive uniqueness.",
      "title": "Name"
    },
    "permissions": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "New set of the permissions assigned by the role. Replaces existing set.\n\nTo add/remove roles use PATCH/DELETE `/auth/roles/{roleId}/permissions`",
      "title": "Permissions"
    }
  },
  "type": "object"
}