POST /notifications/channels - adds a link between a notification token and a notification channel
| Parameter | Parameter Type | Data Type |
|---|---|---|
| api-key | header | string Required |
| Authorization | header | string Required |
| token | query | string required |
| channel_id | query | integer required |
invalid HTTP_API_KEYNot authenticated200 - Success401 - Unauthorized actioncurl --request POST \
--url https://api-dev.radiozu.ro/v1/notifications/channels \
--header 'Authorization: Bearer AUTH_TOKEN' \
--header 'api-key: API_KEY' \
--data token=tjkdadh1jasdccmnzxhadadshgj \
--data channel_id=1
A notification token with associated/linked notification channels.
id - integertoken - stringuser_id - integer, user_id will be 0 for generic accountsdevice_type - the device type for the tokenchannels - an array of notification channels, as belowA notification channel:
id - integer, id of notification channelname - string, name of notification channelactive - integer (0/1), denotes if a notification channel is activelink_id - integer, the id of the link between the notification channel and the notification token, to be used for deletion of the link{
"data": {
"id": 1,
"token": "tjkdadh1jasdccmnzxhadadshgj",
"user_id": 4,
"device_type": "android",
"channels": [
{
"id": 1,
"name": "episodes",
"active": 1,
"link_id": 7
}
]
}
}