Fixed the way the API receives POST data.