setActivityCounters( )
Developer Preview
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Sets activity counters for a member.
If a counter doesn't exist, it's created.
Counters are set under a custom key, which is an ID for the counter, and is unique per app.
Admin Method
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Permission Scopes
For app development, you must have one of the following permission scopes:Manage Activity Counters
Learn more about permission scopes.
Method Declaration
Copy
Method Parameters
memberIdstringRequired
ID of the member to upsert an activity counter for.
counterCounterRequired
Details of the counter to be set.
Returns
Return Type:Promise<SetActivityCountersResponse>
Was this helpful?
Yes
No