{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quickbase/json-schema/quickbase-trustee-change-response-schema.json",
  "title": "trusteeChangeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quickbase-trustees-api-openapi.yml#/components/schemas/trusteeChangeResponse",
  "type": "object",
  "required": [
    "failure",
    "success"
  ],
  "properties": {
    "failure": {
      "description": "A list of trustees that were not updated. This includes invalid IDs or IDs that could not be processed.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "The error message associated with the trustee that could not be updated."
          },
          "trustee": {
            "$ref": "#/$defs/trusteeInput"
          }
        }
      }
    },
    "success": {
      "description": "A list of trustees that have been successfully updated.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/trusteeInput"
      }
    }
  },
  "$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."
    }
  }
}