{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/netcorecloud/json-schema/netcorecloud-update-webhook-request-schema.json",
  "title": "UpdateWebhookRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/netcorecloud-webhook-management-api-openapi.yml#/components/schemas/UpdateWebhookRequest",
  "type": "object",
  "required": [
    "type",
    "name",
    "url",
    "headers"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "incoming",
        "event"
      ],
      "description": "Select whether the webhook is for incoming messages or event delivery."
    },
    "name": {
      "type": "string",
      "description": "Enter a unique name for the webhook.",
      "maxLength": 50
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Enter the destination URL to receive webhook payloads."
    },
    "source": {
      "type": "string",
      "description": "Optionally specify the source or service that owns the webhook.",
      "maxLength": 100
    },
    "headers": {
      "type": "string",
      "description": "Provide custom headers in JSON format for webhook requests."
    }
  }
}