{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/karbonhq/json-schema/karbonhq-get-teams-schema.json",
  "title": "GetTeams",
  "description": "The API response containing a list of Teams in Karbon.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/karbonhq-users-api-openapi.yml#/components/schemas/GetTeams",
  "type": "object",
  "properties": {
    "@odata.context": {
      "type": "string"
    },
    "@odata.count": {
      "type": "integer"
    },
    "@odata.nextLink": {
      "type": "string"
    },
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Team"
      }
    }
  },
  "$defs": {
    "Team": {
      "type": "object",
      "description": "A Karbon team containing a list of member Users and Teams.",
      "required": [
        "TeamKey",
        "Name"
      ],
      "properties": {
        "TeamKey": {
          "type": "string",
          "description": "A Karbon-generated unique identifier for the Team."
        },
        "Name": {
          "type": "string",
          "description": "The name of the Team."
        },
        "Description": {
          "type": [
            "string",
            "null"
          ],
          "description": "An optional description of the Team."
        },
        "ParentTeamKey": {
          "type": [
            "string",
            "null"
          ],
          "description": "The key of the parent Team when this Team is a sub-team; otherwise null."
        }
      }
    }
  }
}