POST data to the API