# Create a delivery configuration

Endpoint: POST /integrations/deliveryconfig
Version: 1.0.450.36533
Security: OAuth2

## Request fields (application/json):

  - `Name` (string, required)

  - `DeliveryTargets` (object, required)
    Example: {"Kafka":{"BootstrapServers":"","SaslUsername":"","SaslPassword":"","Topic":""},"Http":{"Endpoint":"","Secret":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""},"SearchIngestion":{"Domain":"","Source":"","Endpoint":"","Entity":"","ApiKey":"","Content":{"Locales":[""],"Http":{"Endpoint":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""}}},"SendEvent":{"SiteID":"","ServiceEndpoint":""},"DiscoverEvent":{"ClientID":"","ApiKey":"","ServiceEndpoint":""},"EventHub":{"EventHubName":"","ConnectionString":""},"AzureBlob":{"ConnectionString":"","OverrideContainerName":""},"AzureTable":{"ConnectionString":"","OverrideTableName":""},"CosmosDb":{"ConnectionString":"","OverrideDatabaseName":""},"Mailchimp":{"ApiKey":""},"MessageSender":{"Secret":"","Endpoint":""},"ContentHub":{"ApiKey":"","Endpoint":"","TargetSchemaName":"","ConfigData":{}}}

  - `DeliveryTargets.Kafka` (object)
    Example: {"BootstrapServers":"","SaslUsername":"","SaslPassword":"","Topic":""}

  - `DeliveryTargets.Kafka.BootstrapServers` (string)

  - `DeliveryTargets.Kafka.SaslUsername` (string)

  - `DeliveryTargets.Kafka.SaslPassword` (string)

  - `DeliveryTargets.Kafka.Topic` (string)

  - `DeliveryTargets.Http` (object)
    Example: {"Endpoint":"","Secret":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""}

  - `DeliveryTargets.Http.Endpoint` (string)

  - `DeliveryTargets.Http.Secret` (string)

  - `DeliveryTargets.Http.CustomAuthHeaderName` (string)

  - `DeliveryTargets.Http.CustomAuthHeaderValue` (string)

  - `DeliveryTargets.SearchIngestion` (object)
    Example: {"Domain":"","Source":"","Endpoint":"","Entity":"","ApiKey":"","Content":{"Locales":[""],"Http":{"Endpoint":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""}}}

  - `DeliveryTargets.SearchIngestion.Domain` (string)

  - `DeliveryTargets.SearchIngestion.Source` (string)

  - `DeliveryTargets.SearchIngestion.Endpoint` (string)

  - `DeliveryTargets.SearchIngestion.Entity` (string)

  - `DeliveryTargets.SearchIngestion.ApiKey` (string)

  - `DeliveryTargets.SearchIngestion.Content` (object)
    Example: {"Locales":[""],"Http":{"Endpoint":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""}}

  - `DeliveryTargets.SearchIngestion.Content.Locales` (array)
    Supported search ingestion locales.
    Example: [""]

  - `DeliveryTargets.SearchIngestion.Content.Http` (object)
    Example: {"Endpoint":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""}

  - `DeliveryTargets.SearchIngestion.Content.Http.Endpoint` (string)

  - `DeliveryTargets.SearchIngestion.Content.Http.CustomAuthHeaderName` (string)
    Security feature that allows your middleware to verify the digital signature in the request header to ensure you only accept trusted data.

  - `DeliveryTargets.SearchIngestion.Content.Http.CustomAuthHeaderValue` (string)
    The header value that can be passed to your middleware.

  - `DeliveryTargets.SendEvent` (object)
    Example: {"SiteID":"","ServiceEndpoint":""}

  - `DeliveryTargets.SendEvent.SiteID` (string)

  - `DeliveryTargets.SendEvent.ServiceEndpoint` (string)

  - `DeliveryTargets.DiscoverEvent` (object)
    Example: {"ClientID":"","ApiKey":"","ServiceEndpoint":""}

  - `DeliveryTargets.DiscoverEvent.ClientID` (string)

  - `DeliveryTargets.DiscoverEvent.ApiKey` (string)

  - `DeliveryTargets.DiscoverEvent.ServiceEndpoint` (string)

  - `DeliveryTargets.EventHub` (object)
    Example: {"EventHubName":"","ConnectionString":""}

  - `DeliveryTargets.EventHub.EventHubName` (string)

  - `DeliveryTargets.EventHub.ConnectionString` (string)

  - `DeliveryTargets.AzureBlob` (object)
    Example: {"ConnectionString":"","OverrideContainerName":""}

  - `DeliveryTargets.AzureBlob.ConnectionString` (string)
    Storage account connection string.

  - `DeliveryTargets.AzureBlob.OverrideContainerName` (string)

  - `DeliveryTargets.AzureTable` (object)
    Example: {"ConnectionString":"","OverrideTableName":""}

  - `DeliveryTargets.AzureTable.ConnectionString` (string)
    Storage account connection string.

  - `DeliveryTargets.AzureTable.OverrideTableName` (string)

  - `DeliveryTargets.CosmosDb` (object)
    Example: {"ConnectionString":"","OverrideDatabaseName":""}

  - `DeliveryTargets.CosmosDb.ConnectionString` (string)
    Storage account connection string.

  - `DeliveryTargets.CosmosDb.OverrideDatabaseName` (string)

  - `DeliveryTargets.Mailchimp` (object)
    Example: {"ApiKey":""}

  - `DeliveryTargets.Mailchimp.ApiKey` (string)
    The Mailchimp API key. If this property is not set, the default OrderCloud Mailchimp instance is used. The default instance is intended for test purposes only.

  - `DeliveryTargets.MessageSender` (object)
    Example: {"Secret":"","Endpoint":""}

  - `DeliveryTargets.MessageSender.Secret` (string)

  - `DeliveryTargets.MessageSender.Endpoint` (string)

  - `DeliveryTargets.ContentHub` (object)
    Example: {"ApiKey":"","Endpoint":"","TargetSchemaName":"","ConfigData":{}}

  - `DeliveryTargets.ContentHub.ApiKey` (string)

  - `DeliveryTargets.ContentHub.Endpoint` (string)

  - `DeliveryTargets.ContentHub.TargetSchemaName` (string)

  - `DeliveryTargets.ContentHub.ConfigData` (object)
    Any custom property mapping should be included here.
    Example: {}

  - `ID` (string)

  - `Enabled` (boolean)

## Response 201 fields (application/json):

  - `ID` (string)

  - `Name` (string)

  - `Enabled` (boolean)

  - `DeliveryTargets` (object)
    Example: {"Kafka":{"BootstrapServers":"","SaslUsername":"","SaslPassword":"","Topic":""},"Http":{"Endpoint":"","Secret":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""},"SearchIngestion":{"Domain":"","Source":"","Endpoint":"","Entity":"","ApiKey":"","Content":{"Locales":[""],"Http":{"Endpoint":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""}}},"SendEvent":{"SiteID":"","ServiceEndpoint":""},"DiscoverEvent":{"ClientID":"","ApiKey":"","ServiceEndpoint":""},"EventHub":{"EventHubName":"","ConnectionString":""},"AzureBlob":{"ConnectionString":"","OverrideContainerName":""},"AzureTable":{"ConnectionString":"","OverrideTableName":""},"CosmosDb":{"ConnectionString":"","OverrideDatabaseName":""},"Mailchimp":{"ApiKey":""},"MessageSender":{"Secret":"","Endpoint":""},"ContentHub":{"ApiKey":"","Endpoint":"","TargetSchemaName":"","ConfigData":{}}}

  - `DeliveryTargets.Kafka` (object)
    Example: {"BootstrapServers":"","SaslUsername":"","SaslPassword":"","Topic":""}

  - `DeliveryTargets.Kafka.BootstrapServers` (string)

  - `DeliveryTargets.Kafka.SaslUsername` (string)

  - `DeliveryTargets.Kafka.SaslPassword` (string)

  - `DeliveryTargets.Kafka.Topic` (string)

  - `DeliveryTargets.Http` (object)
    Example: {"Endpoint":"","Secret":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""}

  - `DeliveryTargets.Http.Endpoint` (string)

  - `DeliveryTargets.Http.Secret` (string)

  - `DeliveryTargets.Http.CustomAuthHeaderName` (string)

  - `DeliveryTargets.Http.CustomAuthHeaderValue` (string)

  - `DeliveryTargets.SearchIngestion` (object)
    Example: {"Domain":"","Source":"","Endpoint":"","Entity":"","ApiKey":"","Content":{"Locales":[""],"Http":{"Endpoint":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""}}}

  - `DeliveryTargets.SearchIngestion.Domain` (string)

  - `DeliveryTargets.SearchIngestion.Source` (string)

  - `DeliveryTargets.SearchIngestion.Endpoint` (string)

  - `DeliveryTargets.SearchIngestion.Entity` (string)

  - `DeliveryTargets.SearchIngestion.ApiKey` (string)

  - `DeliveryTargets.SearchIngestion.Content` (object)
    Example: {"Locales":[""],"Http":{"Endpoint":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""}}

  - `DeliveryTargets.SearchIngestion.Content.Locales` (array)
    Supported search ingestion locales.
    Example: [""]

  - `DeliveryTargets.SearchIngestion.Content.Http` (object)
    Example: {"Endpoint":"","CustomAuthHeaderName":"","CustomAuthHeaderValue":""}

  - `DeliveryTargets.SearchIngestion.Content.Http.Endpoint` (string)

  - `DeliveryTargets.SearchIngestion.Content.Http.CustomAuthHeaderName` (string)
    Security feature that allows your middleware to verify the digital signature in the request header to ensure you only accept trusted data.

  - `DeliveryTargets.SearchIngestion.Content.Http.CustomAuthHeaderValue` (string)
    The header value that can be passed to your middleware.

  - `DeliveryTargets.SendEvent` (object)
    Example: {"SiteID":"","ServiceEndpoint":""}

  - `DeliveryTargets.SendEvent.SiteID` (string)

  - `DeliveryTargets.SendEvent.ServiceEndpoint` (string)

  - `DeliveryTargets.DiscoverEvent` (object)
    Example: {"ClientID":"","ApiKey":"","ServiceEndpoint":""}

  - `DeliveryTargets.DiscoverEvent.ClientID` (string)

  - `DeliveryTargets.DiscoverEvent.ApiKey` (string)

  - `DeliveryTargets.DiscoverEvent.ServiceEndpoint` (string)

  - `DeliveryTargets.EventHub` (object)
    Example: {"EventHubName":"","ConnectionString":""}

  - `DeliveryTargets.EventHub.EventHubName` (string)

  - `DeliveryTargets.EventHub.ConnectionString` (string)

  - `DeliveryTargets.AzureBlob` (object)
    Example: {"ConnectionString":"","OverrideContainerName":""}

  - `DeliveryTargets.AzureBlob.ConnectionString` (string)
    Storage account connection string.

  - `DeliveryTargets.AzureBlob.OverrideContainerName` (string)

  - `DeliveryTargets.AzureTable` (object)
    Example: {"ConnectionString":"","OverrideTableName":""}

  - `DeliveryTargets.AzureTable.ConnectionString` (string)
    Storage account connection string.

  - `DeliveryTargets.AzureTable.OverrideTableName` (string)

  - `DeliveryTargets.CosmosDb` (object)
    Example: {"ConnectionString":"","OverrideDatabaseName":""}

  - `DeliveryTargets.CosmosDb.ConnectionString` (string)
    Storage account connection string.

  - `DeliveryTargets.CosmosDb.OverrideDatabaseName` (string)

  - `DeliveryTargets.Mailchimp` (object)
    Example: {"ApiKey":""}

  - `DeliveryTargets.Mailchimp.ApiKey` (string)
    The Mailchimp API key. If this property is not set, the default OrderCloud Mailchimp instance is used. The default instance is intended for test purposes only.

  - `DeliveryTargets.MessageSender` (object)
    Example: {"Secret":"","Endpoint":""}

  - `DeliveryTargets.MessageSender.Secret` (string)

  - `DeliveryTargets.MessageSender.Endpoint` (string)

  - `DeliveryTargets.ContentHub` (object)
    Example: {"ApiKey":"","Endpoint":"","TargetSchemaName":"","ConfigData":{}}

  - `DeliveryTargets.ContentHub.ApiKey` (string)

  - `DeliveryTargets.ContentHub.Endpoint` (string)

  - `DeliveryTargets.ContentHub.TargetSchemaName` (string)

  - `DeliveryTargets.ContentHub.ConfigData` (object)
    Any custom property mapping should be included here.
    Example: {}

## Response 4XX fields (application/json):

  - `StatusCode` (integer)
    Example: "404"

  - `ErrorCode` (string)
    Example: "NotFoundError"

  - `Message` (string)
    Example: "Object not found"

  - `Data` (object)
    Example: {"ObjectType":"","ObjectID":""}


