Return correct content-type for api submit
Add doco and example for api submission
Fix typo