Post push token

Save new push token on the server.

Save new push token on the server.

Payload

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     -H "Content-type:application/json" \
     http://localhost:3000/api/v1/push.token \
     -d '{"type": "gcm", "value": "TOKEN", "appName": "MyApp"}'

Example Result

{
    "result": {
        "token": {
            "gcm": "TOKEN"
        },
        "appName": "RocketAPP",
        "userId": "52d5Rw8LT3TeDa59Z",
        "enabled": true,
        "createdAt": "2018-09-11T18:22:55.006Z",
        "updatedAt": "2018-09-11T18:22:55.006Z",
        "_id": "DMMjKG2hFoLvM2hk7"
    },
    "success": true
}

Change Log

Last updated

Rocket.Chat versions receive support for six months after release.