POST /notifications - add/update a notification token
| Parameter | Parameter Type | Data Type |
|---|---|---|
| api-key | header | string Required |
| Authorization | header | string Required |
| device_type | query | string allowed values: web, android, huawei, ios required |
| token | query | string required |
invalid HTTP_API_KEYNot authenticated200 - Success401 - Unauthorized actioncurl --request POST \
--url https://api-dev.radiozu.ro/v1/notifications \
--header 'Authorization: Bearer AUTH_TOKEN' \
--header 'api-key: API_KEY' \
--data token=tjkdadh1jasdccmnzxhadadshgj \
--data device_type=android
A notification token object
id - integertoken - stringuser_id - integer, user_id will be 0 for generic accountsdevice_type - the device type for the token{
"data": {
"id": 1,
"token": "tjkdadh1jasdccmnzxhadadshgj",
"user_id": 4,
"device_type": "android"
}
}