Fixing the cURL statement and updating the required parameters