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.

Authentication

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permissions
Manage Activity Counters
Learn more about app permissions.
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>
Did this help?