Learn how to use subscriptions to notify a list of recipients associated with an object.
recipient.subscription
namespace as recipient.subscription.property_key
. Properties can be assigned when creating a subscription, and since creating a subscription is an upsert operation, any properties passed will overwrite existing values in subsequent calls for the same user-object relationship.
$object_subscriptions_query -> depth
in the recipient JSON.
depth: 0
would mean sending notification to object channels and not its subscribers.
depth: 1
would mean sending notification to object channels and its subscribers.
depth: 2
(maximum) → Expands up to two levels of subscription. <department -> teams -> team members>
. If you need to support a deeper nesting, kindly get in touch with our team.