Updated api to use json-api style POSTs