         :collection c
         :slug i
         :name i
-        :description "this is an item"})
+        :description "this is an item"
+        :version 1})
       ;; check it didn't create another item
       (collection/item-count c) => 2)
 

          :collection c
          :slug i
          :name i
          :description "this is an item"}))
      ;; check it didn't create another item
      (collection/item-count c) => 2)

    ;; collection doesn't exist - 404 Not Found
    ;; curl -i --header "Accept: application/vnd.fcms.item+json;version=1" --header "Accept-Charset: utf-8" --header "Content-Type: application/vnd.fcms.item+json;version=1" -X PUT -d '{"name":"i-prime", "i":"i"}' http://localhost:3000/not-here/i
    (fact "in a collection that doesn't exist"
      (let [response (api-request :put "/not-here/i" {
        :headers {

        :body {
          :name "i-prime"
          :slug "another-i"
          :description "this is an updated item"}})]
        (:status response) => 422
        (response-mime-type response) => (mime-type :text)
        (body-from-response response) => "Slug already used in the collection.")
