/device

POST /device/register restricted

This request registers a device for notification.

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

Request example

POST /v2/device/register HTTP/1.1
Host: api.lionsclubs.ch
X-Authorization: access-token
Content-Type: application/json
Content-Length: length

{
    "previous": "string",
    "current": "string"
}

Response example

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"success":true}