{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-feed-update-request-schema.json",
  "title": "FeedUpdateRequest",
  "description": "Parameters for updating a feed",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-feeds-api-openapi.yml#/components/schemas/FeedUpdateRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "New name for the feed"
    },
    "description": {
      "type": "string",
      "description": "Updated description"
    },
    "upstreamEnabled": {
      "type": "boolean",
      "description": "Whether to enable/disable upstream sources"
    },
    "upstreamSources": {
      "type": "array",
      "description": "Updated list of upstream sources",
      "items": {
        "$ref": "#/$defs/UpstreamSource"
      }
    },
    "hideDeletedPackageVersions": {
      "type": "boolean",
      "description": "Whether to hide deleted versions"
    },
    "badgesEnabled": {
      "type": "boolean",
      "description": "Whether to enable package badges"
    }
  },
  "$defs": {
    "UpstreamSource": {
      "type": "object",
      "description": "An upstream package source configured for a feed",
      "properties": {
        "id": {
          "type": "string",
          "description": "Upstream source identifier"
        },
        "name": {
          "type": "string",
          "description": "Display name of the upstream source"
        },
        "upstreamSourceType": {
          "type": "string",
          "description": "Type of upstream source",
          "enum": [
            "public",
            "internal"
          ]
        },
        "protocol": {
          "type": "string",
          "description": "Package protocol type",
          "enum": [
            "nuget",
            "npm",
            "maven",
            "pypi",
            "upack",
            "cargo",
            "swift"
          ]
        },
        "location": {
          "type": "string",
          "format": "uri",
          "description": "URL of the upstream package registry"
        },
        "status": {
          "type": "string",
          "description": "Current status of the upstream source",
          "enum": [
            "ok",
            "disabled"
          ]
        },
        "deletedDate": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}