Question

I am in a pinch. I need to update (PUT) a row with an associative array column in Parse.com . but I cannot figure out how to do this and I couldn't find anything in the documentation at parse.com . I am programming in PHP and I created my own cURL wrapper (In other words i need someone to tell me how the URL needs to look like).

Was it helpful?

Solution

It is listed in the docs here: https://parse.com/docs/rest#objects-updating

curl -X PUT \
  -H "X-Parse-Application-Id: app-id-here" \
  -H "X-Parse-REST-API-Key: rest-api-key-here" \
  -H "Content-Type: application/json" \
  -d '{"score":73453}' \
  https://api.parse.com/1/classes/class-name-here/object-id-here

where the data is a json encoded object of the updated keys.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top