title: Creating a new card using the Trello API
body: <p>I'm trying to add a new card to a Trello list but am a bit stuck</p>
  
  <p>I've tried POSTing in two approaches:</p>
  
  <ol>
  <li><p><code>https://api.trello.com/1/lists/mylistid/cards?key=mykey&amp;token=myToken&amp;name=myName</code>
  which results in a 404 but is mentioned <a href="https://webapps.stackexchange.com/questions/28887/creating-new-list-or-card-in-trello-using-restful">here</a> as a suggested but untested response and seems to follow the Trello documentation <a href="http://trello.com/docs/api/list/index.html#post-1-lists-idlist-cards" rel="noreferrer">here</a>.</p></li>
  <li><p><code>https://api.trello.com/1/cards?key=myKey&amp;token=myToken&amp;name=myName</code> based on the documentation <a href="http://trello.com/docs/api/card/index.html#post-1-cards" rel="noreferrer">here</a>.</p></li>
  </ol>
  
  <p>Neither works for me. Is the documentation correct or what am I doing wrong?</p>
  
  <h2>UPDATE (hoisted from comments)</h2>
  
  <p>I had the idList in the JSON which I was passing in but the content type was wrong. I had <code>text/json</code>, it should have been <code>application/json</code>. Option 2 works now.</p>