{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-pipelines/json-schema/microsoft-azure-pipelines-create-pipeline-parameters-schema.json",
  "title": "CreatePipelineParameters",
  "description": "Parameters for creating a new pipeline definition",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-pipelines-pipelines-api-openapi.yml#/components/schemas/CreatePipelineParameters",
  "type": "object",
  "required": [
    "name",
    "configuration"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Display name for the new pipeline"
    },
    "folder": {
      "type": "string",
      "description": "Folder path where the pipeline will be organized",
      "default": "\\"
    },
    "configuration": {
      "type": "object",
      "description": "Pipeline configuration specifying the YAML file and repository",
      "required": [
        "type",
        "path",
        "repository"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "Configuration type (use yaml for YAML-based pipelines)",
          "enum": [
            "unknown",
            "yaml",
            "designerJson",
            "justInTime",
            "designerHyphenJson"
          ]
        },
        "path": {
          "type": "string",
          "description": "Path to the YAML file in the repository"
        },
        "repository": {
          "type": "object",
          "description": "Repository where the pipeline YAML file is located",
          "required": [
            "id",
            "type"
          ],
          "properties": {
            "id": {
              "type": "string",
              "description": "Repository GUID for Azure Repos or full name for GitHub"
            },
            "type": {
              "type": "string",
              "description": "Source repository type",
              "enum": [
                "unknown",
                "azureReposGit",
                "gitHub",
                "azureReposGitHyphenated"
              ]
            },
            "name": {
              "type": "string",
              "description": "Repository name (required for GitHub repositories)"
            }
          }
        }
      }
    }
  }
}