Subscription¶
POST /api/v1/channel/{channel_uuid}/subscribe
Overview¶
Route Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
channel_uuid | string | Y | Channel UUID |
Body Request Parameters¶
Parameter | Type | Required | Description |
---|---|---|---|
type | string | Y | Subscription type Example: responsible Allow empty: False Optional values: ['responsible', 'participate', 'attention', 'cancel'] |
Parameter Additional Explanation¶
Request Body Structure Explanation
Parameter | Type | Description |
---|---|---|
type | string | Enum values (Responsible: responsible, Participate: participate, Attention: attention, Cancel: cancel) |
Request Example¶
curl 'https://openapi.truewatch.com/api/v1/channel/chan_xxxx32/subscribe' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: zh' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"type": "participate"}' \
--compressed