{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UpdateWebhookRequest",
  "title": "UpdateWebhookRequest",
  "type": "object",
  "description": "Request body for updating an existing webhook subscription.",
  "properties": {
    "endpoint": {
      "type": "string",
      "format": "uri",
      "description": "The updated endpoint URL."
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Updated array of event names to subscribe to."
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive"
      ],
      "description": "Set the webhook status to active or inactive."
    }
  }
}