Frage

In Data Browser I can't edit the channels field and if I try from terminal with curl

curl -X PUT \
-H "X-Parse-Application-Id: xxxxxx" \
-H "X-Parse-REST-API-Key: xxxxxx" \
-H "Content-Type: application/json" \
-d '{
    "channels": [
      "Promo"
    ]
  }' \
https://api.parse.com/1/installations/mrmBZvsErB

give me error: {"code":101,"error":"object not found for update"}. I if try to create new installation class give me error: This class already exists. But if I send push from web console no problem.

Dashboard screen: http://oi60.tinypic.com/dbtmq1.jpg

Anyone can help me please?

War es hilfreich?

Lösung

The code seem right. Maybe the problem is the wrong objectId "mrmBZvsErB", i suppose you have taken it from parse documentation website (https://www.parse.com/docs/push_guide#sending-channels/REST)

From your screenshot you should use "Sdsji0JSYJ" instead. So:

curl -X PUT \
-H "X-Parse-Application-Id: xxxxxx" \
-H "X-Parse-REST-API-Key: xxxxxx" \
-H "Content-Type: application/json" \
-d '{
    "channels": [
      "Promo"
    ]
  }' \
https://api.parse.com/1/installations/Sdsji0JSYJ

Hope it helps

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top