title: How to Design a Restful API for Bulk Inserts and Updates?
body: <p>I have a Web API application and I'm using the below url for both bulk (tens or hundreds) inserts and updates which return just OK or Failed.</p>
  
  <pre><code>POST api/v1/products
  </code></pre>
  
  <p>which is mapped to my action:</p>
  
  <pre><code>public HttpResponseMessage PostProducts(PostProductsRequest request)
  {
  
  ...
  }
  </code></pre>
  
  <p>PostProductsRequest object contains a Products property of type List.</p>
  
  <p>If the Id property exists for a Property, I update it otherwise it'd indicate an insert.</p>
  
  <p>But I'm just wondering whether I should use Post for Bulk Inserts only and Put for Bulk Updates, not sure. What's the best practice and advantage of each approach?</p>
  
  <p>How to Design a Restful API for Bulk Inserts and Updates?</p>