I\'m using Firebase to store application tokens with names, using the REST api.
This is the data structure I\'m using:
You should put your self-generated ID into the URL:
curl -X POST -d "{\":{\"name\":\"Test 2\"}" \ https://xxx.firebaseio.com/apps/3ba7792jae16328.json
Firebase always overwrites (unless you use PATCH) the entire node at the URL you indicate. So it's important that you specify the URL up to the level that you want to overwrite data.