Update user's subscription to an object updates.

Resource url

https://yourproject.userecho.com/api/v2/users/[user_id]/subscriptions.json

Parameters

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.

Request example #1

    { "object_type":"forum", "object_id":1, "subscription_status":1 }
  

Response example

    { "status": "success", "data": { "object_type": "forum", "user_id": 1, "object_id": 1, "subscription_status": 1 } }
  
© 2024 Stamul, LLC. All rights reserved.