{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UpdateEndpointRequest",
  "title": "UpdateEndpointRequest",
  "type": "object",
  "description": "Request body for updating an existing webhook endpoint",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The new destination URL for webhook events"
    },
    "events": {
      "type": "array",
      "description": "Updated list of event types for this endpoint",
      "items": {
        "$ref": "#/components/schemas/EventTypeConfig"
      }
    },
    "signingSecret": {
      "type": "string",
      "description": "Updated signing secret for verifying webhook payloads"
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the endpoint is enabled and receiving events"
    }
  }
}