{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kontaktio/main/json-schema/kontaktio-stream-patch-eventhub-channel-schema.json",
  "title": "Event Hub channel PATCH",
  "description": "Update a Azure Event Hub stream channel\n\n**IMPORTANT:** when updating channel object, all properties are required.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kontaktio-stream-api-openapi.yml#/components/schemas/Stream-patch-eventhub-channel",
  "type": "object",
  "x-internal": false,
  "properties": {
    "status": {
      "type": "string",
      "description": "Channel configuration status.",
      "enum": [
        "active",
        "inactive"
      ]
    },
    "name": {
      "type": "string",
      "description": "User-defined name to identify the channel."
    },
    "channel": {
      "type": "object",
      "description": "Configuration specific to the Azure Event Hub stream. When updating a channel property, all channel property values must be provided.",
      "properties": {
        "type": {
          "type": "string",
          "description": "Set to eventHub. Type of channel; identifies the third-party streaming service.",
          "enum": [
            "kinesis",
            "eventHub",
            "watson"
          ]
        },
        "endpoint": {
          "type": "string"
        },
        "sharedAccessKeyName": {
          "type": "string"
        },
        "sharedAccessKey": {
          "type": "string"
        },
        "eventHubName": {
          "type": "string"
        }
      }
    }
  }
}