title: How to post string array using POSTMAN?
body: <p>I am using Postman to send an array of string to a web API. The web API method looks like:</p>
  
  <pre><code>[HttpPost]
  public async Task&lt;IEnumerable&lt;DocumentDTO&gt;&gt; GetDocuments([FromBody]IEnumerable&lt;string&gt; documentNames)
  {
      return await _service.GetDocuments(documentNames);
  }
  </code></pre>
  
  <p>I saw this <a href="https://stackoverflow.com/questions/12756688/is-it-possible-to-send-an-array-with-the-postman-chrome-extension">SO post</a> on how to send an array using Postman. Here is how I am sending the array:
  <a href="https://i.stack.imgur.com/3bjvr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3bjvr.png" alt="enter image description here"></a></p>
  
  <p>Fiddler shows the request's content type is <code>multipart/form-data;</code></p>
  
  <p><a href="https://i.stack.imgur.com/Hlpru.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Hlpru.png" alt="enter image description here"></a></p>
  
  <p>But I am getting an error response:</p>
  
  <blockquote>
    <p>{   "Message": "The request entity's media type 'multipart/form-data'
    is not supported for this resource.",   "ExceptionMessage": "No
    MediaTypeFormatter is available to read an object of type
    'IEnumerable<code>1' from content with media type 'multipart/form-data'.", 
    "ExceptionType": "System.Net.Http.UnsupportedMediaTypeException",<br>
    "StackTrace": "   at
    System.Net.Http.HttpContentExtensions.ReadAsAsync[T](HttpContent
    content, Type type, IEnumerable</code>1 formatters, IFormatterLogger
    formatterLogger, CancellationToken cancellationToken)\r\n   at
    System.Web.Http.ModelBinding.FormatterParameterBinding.ReadContentAsync(HttpRequestMessage
    request, Type type, IEnumerable`1 formatters, IFormatterLogger
    formatterLogger, CancellationToken cancellationToken)" }</p>
  </blockquote>
  
  <p>I have tried setting the key as <code>documentNames</code>,<code>documentNames[]</code>, <code>documentNames[0]</code>.</p>
  
  <p>I have tried selecting the body as <code>x-www-form-urlencoded</code>. When I do that, the API receives an empty collection.</p>
  
  <p>I have tried selecting a body as <code>raw</code>. When I do that, the API receives null as a parameter.  </p>
  
  <p><strong>Questions</strong>  </p>
  
  <ol>
  <li>How do I send a string array using form-data?  </li>
  <li>How do I send a string array using <code>x-www-form-urlencoded</code>?  </li>
  <li>How do I send a string array as raw JSON?  </li>
  </ol>