{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-test-plan-create-params-schema.json",
  "title": "TestPlanCreateParams",
  "description": "Parameters for creating a new test plan",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-test-plans-api-openapi.yml#/components/schemas/TestPlanCreateParams",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name for the new test plan"
    },
    "description": {
      "type": "string",
      "description": "Description of the test plan"
    },
    "areaPath": {
      "type": "string",
      "description": "Area path to associate with the test plan"
    },
    "iteration": {
      "type": "string",
      "description": "Iteration path (sprint) to associate with the test plan"
    },
    "startDate": {
      "type": "string",
      "format": "date-time",
      "description": "Start date of the test plan"
    },
    "endDate": {
      "type": "string",
      "format": "date-time",
      "description": "End date of the test plan"
    },
    "owner": {
      "$ref": "#/$defs/IdentityRef"
    },
    "buildDefinition": {
      "type": "object",
      "description": "Build definition to associate for automated testing",
      "properties": {
        "id": {
          "type": "integer"
        }
      }
    },
    "buildId": {
      "type": "integer",
      "description": "Specific build ID to test against"
    }
  },
  "$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"
        }
      }
    }
  }
}