I'm trying to do an update on an object from my db (parse.com), So, I saw the docs and look likes so easy but I think I forget some dummy thing... but I'm not able to find it... Could you help me, please?
I'm doing this request:
$.http({
method: 'PUT',
url: myURL + 'objectID of object to update',
headers: {'X-Parse-Application-Id': appId, 'X-Parse-REST-API-Key': restId,
'Content-Type': 'application/json'},
data: {'name' : 'new name'}
}).success(function(data){
console.log(data)
}).error(function(data){
console.log(data)
});
here, the docs says like you have to do this kind of request: https://parse.com/docs/rest/guide#objects-updating-objects
Thanks a lot, if you need some information more, let me know.
EDIT: Sorry, I'm getting an error 400 (Bad Request)