Set correct content type and stringify JSON passed to api
Fix for when no userId is present