title: Initialize RabbitMQ Exchange with arguments using Powershell
body: <p>I am trying to initialize an Exchange using Powershell. I need to define a DLQ, so I am trying the following syntax:</p>
  
  <pre><code>$exchangeURL = $apiURL + "/exchanges/myHost/myExchange";
  $body = "{""type"":""fanout"",""auto_delete"":false,""durable"":true,""arguments"":[{""x-dead-letter-exchange"": ""myExchangeDLQ""}]}"
  $response = Invoke-WebRequest -Uri $exchangeURL -Headers $headers -Method Put -ContentType "application/json" -Body $body
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>Invoke-WebRequest :
  {"error":"bad_request","reason":["unhandled_type",["x-dead-letter-exchange","myExchangeDLQ"]]}
  + $response = Invoke-WebRequest -Uri $exchangeURL -Headers $headers -Method Put -C ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
      + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
  </code></pre>
  
  <p>I see at <a href="http://hg.rabbitmq.com/rabbitmq-management/raw-file/3646dee55e02/priv/www-api/help.html" rel="nofollow">this link</a> that maybe it is not that easy:</p>
  
  <blockquote>
    <p>arguments fields are ignored everywhere. You cannot create a queue,
    exchange or binding with arguments. Queues, exchanges or bindings with
    arguments won't show those arguments</p>
  </blockquote>