              :data (map (fn [entity]
                           [(entity "entityName")
                            (entity "entityType")
-                           (str (entity "success"))
+                           (str (entity "succeeded"))
                            (entity "message")])
                      (:uploadResults @state))})]])])})

  (swap! state assoc
    :entities-loaded? true
    :uploadResults (utils/parse-json-string "[
        { \"entityName\" : \"foo\", \"entityType\" : \"bar\", \"success\" : false, \"message\" : \"ohno\" },
        { \"entityName\" : \"bar\", \"entityType\" : \"baz\", \"success\" : true, \"message\" : \"hooray\" }
      ]")))



    (str "/workspaces/" workspaceNamespace "/" workspaceName "/importEntitiesJSON")
    {:method :post
     :encType "multipart/form-data"
     :on-done #(swap! state assoc :entities-loaded? true :uploadResults (utils/parse-json-string (-> (:xhr %) .-responseText)))
     :data (utils/generate-form-data {:entities entityFile})}))


