{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-test-plan-update-params-schema.json",
  "title": "TestPlanUpdateParams",
  "description": "Parameters for updating an existing 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/TestPlanUpdateParams",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "New name for the test plan"
    },
    "description": {
      "type": "string",
      "description": "New description for the test plan"
    },
    "areaPath": {
      "type": "string",
      "description": "Updated area path"
    },
    "iteration": {
      "type": "string",
      "description": "Updated iteration path"
    },
    "startDate": {
      "type": "string",
      "format": "date-time",
      "description": "Updated start date"
    },
    "endDate": {
      "type": "string",
      "format": "date-time",
      "description": "Updated end date"
    },
    "owner": {
      "$ref": "#/$defs/IdentityRef"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive"
      ]
    },
    "buildDefinition": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        }
      }
    },
    "buildId": {
      "type": "integer"
    },
    "revision": {
      "type": "integer",
      "description": "Current revision number (required for update to prevent conflicts)"
    }
  },
  "$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"
        }
      }
    }
  }
}