updated generic function for PUT made url changes in cURL call, modification in calling URL