fixing API errors
fixes for POST API