This issue thread over at github was useful in finding out how to upload items via the Rest API.
I’m still stuck on how to set the class on a resource. Can anybody provide an example? I’ve tried reverse engineering it by creating items with a class but I can’t work it out.