{
  "opencollection": "1.0.0",
  "info": {
    "name": "Azure Event Hubs Data Plane REST Authorization Rules Events API",
    "version": "2014-01"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Events",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Azure Event Hubs Send event",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{namespaceName}.servicebus.windows.net/:eventHubPath/messages",
            "headers": [
              {
                "name": "x-ms-retrypolicy",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "eventHubPath",
                "value": "",
                "type": "path",
                "description": "The path to the event hub."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "The API version to use for the request."
              },
              {
                "name": "timeout",
                "value": "",
                "type": "query",
                "description": "Timeout for the REST operation in seconds. The value is between 1 and 120 seconds."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Sends a new event to an event hub. The event body can be any content type. Custom user properties can be set via the UserProperties header."
        },
        {
          "info": {
            "name": "Azure Event Hubs Send batch events",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{namespaceName}.servicebus.windows.net/:eventHubPath/messages?batch=true",
            "headers": [
              {
                "name": "x-ms-retrypolicy",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "eventHubPath",
                "value": "",
                "type": "path",
                "description": "The path to the event hub."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "The API version to use for the request."
              },
              {
                "name": "timeout",
                "value": "",
                "type": "query",
                "description": "Timeout for the REST operation in seconds. The value is between 1 and 120 seconds."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Sends a new batched message event to an Event Hub. Batching reduces the number of messages that are transmitted by merging information from multiple messages into a single batch of messages. The message body must be a valid JSON array payload following the convention to describe each message. The Content-Type header must be set to application/vnd.microsoft.servicebus.json."
        },
        {
          "info": {
            "name": "Azure Event Hubs Send partition event",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{namespaceName}.servicebus.windows.net/:eventHubPath/partitions/:partitionId/messages",
            "headers": [
              {
                "name": "x-ms-retrypolicy",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "eventHubPath",
                "value": "",
                "type": "path",
                "description": "The path to the event hub."
              },
              {
                "name": "partitionId",
                "value": "",
                "type": "path",
                "description": "The ID of a partition on an event hub."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "The API version to use for the request."
              },
              {
                "name": "timeout",
                "value": "",
                "type": "query",
                "description": "Timeout for the REST operation in seconds. The value is between 1 and 120 seconds."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Sends a new event to a specified partition in an Event Hub. This allows you to target a specific partition for the event rather than letting Event Hubs distribute it."
        },
        {
          "info": {
            "name": "Azure Event Hubs Send event with publisher ID",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{namespaceName}.servicebus.windows.net/:eventHubPath/publishers/:publisherId/messages",
            "headers": [
              {
                "name": "x-ms-retrypolicy",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "eventHubPath",
                "value": "",
                "type": "path",
                "description": "The path to the event hub."
              },
              {
                "name": "publisherId",
                "value": "",
                "type": "path",
                "description": "The name of the publisher."
              },
              {
                "name": "api-version",
                "value": "",
                "type": "query",
                "description": "The API version to use for the request."
              },
              {
                "name": "timeout",
                "value": "",
                "type": "query",
                "description": "Timeout for the REST operation in seconds. The value is between 1 and 120 seconds."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Sends a new event to an Event Hub with a specified publisher ID. This enables publisher identity tracking and publisher policy enforcement on the event hub."
        }
      ]
    }
  ],
  "bundled": true
}