Trouble with posting values via API