Regular
$ curl -X PUT -H 'Content-Type: application/json' \
-d '{ "text": "lorem ipsum", "tags": ["foo", "bar"], "fields": { "foo": "lorem", "bar": "ipsum" } }' \
http://localhost:8080/bags/common/tiddlers/Foo
Binary
$ curl -X PUT -H 'Content-Type: image/png' --data-binary @bar.png \
http://localhost:8080/bags/common/tiddlers/Bar