title: CouchDB - Create a document with an attachment in one step?
body: <p>I'm just starting out with CouchDB and I've been able to create a document with an attachment using the two step process:</p>
  
  <pre><code>$ curl -X PUT http://localhost:5984/test/small -H "Content-Type: application/json" -d {}
  $ curl -X PUT http://localhost:5984/test/small/attachment?rev=1-967a00dff5e02add41819138abb3284d --data-binary @small.mp4 -H "Content-Type: video/mp4"
  </code></pre>
  
  <p>I've been searching around for a bit and I've only seen examples where the document is first created and the attachment is subsequently added. Is there a way I can do this in a single command? Thank you much!</p>