{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quickbase/json-schema/quickbase-trustee-update-list-schema.json",
  "title": "trusteeUpdateList",
  "description": "A list of trustees to be updated in an app. Each trustee is represented by an object containing the trustee's ID, type, and role ID.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quickbase-trustees-api-openapi.yml#/components/schemas/trusteeUpdateList",
  "type": "array",
  "items": {
    "$ref": "#/$defs/trusteeUpdateInput"
  },
  "minItems": 1,
  "maxItems": 1000,
  "$defs": {
    "trusteeInput": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the user, group, or email domain group to be added as a trustee. For users and groups, this is the user's or group's ID in Quickbase. For email domain groups, this is the email domain."
        },
        "type": {
          "type": "string",
          "description": "The type of trustee being added. This can be a user, group, or email domain group.",
          "enum": [
            "user",
            "group",
            "dom-group"
          ]
        },
        "roleId": {
          "type": "integer",
          "description": "The ID of the role to be assigned or currently assigned to the trustee."
        }
      },
      "required": [
        "id",
        "type",
        "roleId"
      ],
      "description": "Object used for operations to read, create, or update trustees in an app."
    },
    "trusteeUpdateInput": {
      "allOf": [
        {
          "$ref": "#/$defs/trusteeInput"
        },
        {
          "type": "object",
          "properties": {
            "oldRoleId": {
              "type": "integer",
              "description": "The ID of the role to be changed for the trustee. This is used to identify the current role before updating it."
            }
          },
          "required": [
            "oldRoleId"
          ]
        }
      ]
    }
  }
}