{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-container-registry/json-schema/azure-container-registry-webhook-update-parameters-schema.json",
  "title": "WebhookUpdateParameters",
  "description": "The parameters for updating a webhook.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/azure-container-registry-webhooks-api-openapi.yml#/components/schemas/WebhookUpdateParameters",
  "properties": {
    "properties": {
      "$ref": "#/$defs/WebhookPropertiesUpdateParameters",
      "description": "The properties that the webhook will be updated with.",
      "x-ms-client-flatten": true
    },
    "tags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags for the webhook.",
      "type": "object"
    }
  },
  "type": "object",
  "$defs": {
    "WebhookPropertiesUpdateParameters": {
      "description": "The parameters for updating the properties of a webhook.",
      "properties": {
        "actions": {
          "description": "The list of actions that trigger the webhook to post notifications.",
          "items": {
            "enum": [
              "push",
              "delete",
              "quarantine",
              "chart_push",
              "chart_delete"
            ],
            "type": "string",
            "x-ms-enum": {
              "modelAsString": true,
              "name": "WebhookAction"
            }
          },
          "type": "array"
        },
        "customHeaders": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Custom headers that will be added to the webhook notifications.",
          "type": "object"
        },
        "scope": {
          "description": "The scope of repositories where the event can be triggered. For example, 'foo:*' means events for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to 'foo:latest'. Empty means all events.",
          "type": "string"
        },
        "serviceUri": {
          "description": "The service URI for the webhook to post notifications.",
          "type": "string"
        },
        "status": {
          "description": "The status of the webhook at the time the operation was called.",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "WebhookStatus"
          }
        }
      },
      "type": "object"
    }
  }
}