Fixed the api.php about 'create one object' part (response 200 OK). Save the data.