{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-create-pipeline-request-schema.json",
  "title": "CreatePipelineRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-pipelines-api-openapi.yml#/components/schemas/CreatePipelineRequest",
  "type": "object",
  "required": [
    "name",
    "configuration"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "folder": {
      "type": "string"
    },
    "configuration": {
      "type": "object",
      "required": [
        "type",
        "path",
        "repository"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "yaml"
          ]
        },
        "path": {
          "type": "string",
          "description": "Path to the YAML file in the repository"
        },
        "repository": {
          "type": "object",
          "required": [
            "id",
            "type"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "type": {
              "type": "string",
              "enum": [
                "azureReposGit",
                "gitHub"
              ]
            }
          }
        }
      }
    }
  }
}