Update user's subscription to an object updates.
https://yourproject.userecho.com/api/v2/users/[user_id]/subscriptions.json
Parameter | Value | Required? | Default | Options | Description |
---|---|---|---|---|---|
object_type | String | yes | "forum", "topic", "tag_or_category" | A type of object you change subscription to. | |
object_id | Integer | yes | An object ID you change subscription to. | ||
subscription_status | Integer | yes | -1, 0, 1 |
Update subscription to status provided.
1 - subcsribed, 0 - unsubscribed (block notifications), -1 - remove information about subscription. |
{ "object_type":"forum", "object_id":1, "subscription_status":1 }
{ "status": "success", "data": { "object_type": "forum", "user_id": 1, "object_id": 1, "subscription_status": 1 } }