I\'m trying to update a record in DB so I\'m defining model with data and calling .save() method. The PUT request is triggered and the database entry is updated. The problem
Your server must return a JSON object. If the response is not a JSON object, the callbacks will not fire.
Check this solution https://stackoverflow.com/a/22176044/1579718