{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/1password/json-schema/1password-team-tree-schema.json",
  "title": "TeamTree",
  "description": "A team and its child teams, nested as a tree",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/1password-teams-api-openapi.yml#/components/schemas/TeamTree",
  "type": "object",
  "properties": {
    "children": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TeamTree"
      },
      "description": "The team's immediate child teams"
    },
    "id": {
      "type": "string",
      "description": "The team's unique ID. Omit when creating a team by name."
    },
    "name": {
      "type": "string",
      "description": "The team's name"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "TeamTree": {
      "type": "object",
      "properties": {
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TeamTree"
          },
          "description": "The team's immediate child teams"
        },
        "id": {
          "type": "string",
          "description": "The team's unique ID. Omit when creating a team by name."
        },
        "name": {
          "type": "string",
          "description": "The team's name"
        }
      },
      "additionalProperties": false,
      "description": "A team and its child teams, nested as a tree"
    }
  }
}