POST /subscriptions - adds new podcast subscription for an user
| Parameter | Parameter Type | Data Type |
|---|---|---|
| api-key | header | string Required |
| Authorization | header | string Required |
| podcast_id | post param | string Required |
invalid HTTP_API_KEYNot authenticated200 - Success401 - Unauthorized actioncurl --request POST \
--url https://api-dev.radiozu.ro/v1/subscriptions \
--header 'Authorization: Bearer AUTH_TOKEN' \
--header 'api-key: API_KEY' \
--data podcast_id=2
A subscription object containing a link between an user and a podcast.
id - id of subscription, to be used for deletion of subscriptionuser_id - user_id of subscriptionpodcast_id - id of the subscribed podcast{
"data": {
"id": 6,
"podcast_id": "2",
"user_id": 1
}
}