{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-test-suite-create-params-schema.json",
  "title": "TestSuiteCreateParams",
  "description": "Parameters for creating a new test suite",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-test-suites-api-openapi.yml#/components/schemas/TestSuiteCreateParams",
  "type": "object",
  "required": [
    "name",
    "suiteType",
    "parentSuite"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the new test suite"
    },
    "suiteType": {
      "type": "string",
      "description": "Type of test suite to create",
      "enum": [
        "none",
        "dynamicTestSuite",
        "staticTestSuite",
        "requirementTestSuite"
      ]
    },
    "parentSuite": {
      "type": "object",
      "description": "Parent suite to nest this suite under",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "ID of the parent suite"
        }
      }
    },
    "requirementId": {
      "type": "integer",
      "description": "Work item ID to link (for requirementTestSuite type)"
    },
    "queryString": {
      "type": "string",
      "description": "WIQL query string (for dynamicTestSuite type)"
    },
    "defaultTesters": {
      "type": "array",
      "description": "Default testers for test cases in this suite",
      "items": {
        "$ref": "#/$defs/IdentityRef"
      }
    }
  },
  "$defs": {
    "IdentityRef": {
      "type": "object",
      "description": "Reference to an Azure DevOps user identity",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "displayName": {
          "type": "string"
        },
        "uniqueName": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "imageUrl": {
          "type": "string",
          "format": "uri"
        },
        "descriptor": {
          "type": "string"
        }
      }
    }
  }
}