{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-build-queue-request-schema.json",
  "title": "BuildQueueRequest",
  "description": "Request to queue a new build",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-builds-api-openapi.yml#/components/schemas/BuildQueueRequest",
  "type": "object",
  "required": [
    "definition"
  ],
  "properties": {
    "definition": {
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "ID of the build definition to queue"
        }
      }
    },
    "sourceBranch": {
      "type": "string",
      "description": "Override the source branch for this build"
    },
    "sourceVersion": {
      "type": "string",
      "description": "Override the source version (commit ID) for this build"
    },
    "parameters": {
      "type": "string",
      "description": "JSON-serialized key-value pairs of build parameters to override"
    },
    "demands": {
      "type": "array",
      "description": "Agent demands for this build",
      "items": {
        "type": "string"
      }
    },
    "priority": {
      "type": "string",
      "description": "Queue priority for this build",
      "enum": [
        "low",
        "belowNormal",
        "normal",
        "aboveNormal",
        "high"
      ]
    },
    "queue": {
      "type": "object",
      "description": "Agent queue override",
      "properties": {
        "id": {
          "type": "integer"
        }
      }
    }
  }
}