POST
AddAction
POST
AddActionOverview
The AddUserAction
endpoint allows users to submit actions that can be tied to various triggers within the gamification system. The service submits a user action to the system. The system evaluates the action against configured triggers and updates the user's progress on related challenges.
The User Actions API in the gamification system is designed to track and process various user actions that contribute to triggering milestones and rewards. The system can integrate user actions in two primary ways: Direct API Calls and Kafka Queue Integration.
Use Cases Examples:
Use Case 2: Submitting a Non-Sum-Based Action (e.g., Hit Tier or Segment Triggers)
A user performs an action that does not accumulate over time but is instead evaluated as a discrete event (e.g., reaching a certain segment). The system will check if the event qualifies for any active challenges and will grant a milestone if achieved.
Request
Header Parameters
X-ClientId and X-Message are only required with V1 API.
Body Parameters
TriggerId Values
Earned Points =
1
Subscribe Vouchers Count =
2
Redeemed Points =
3
Redeemed Vouchers Count =
4
Total Points Balance =
5
Hit Tier =
6
For non-summed triggers, such as hitting a tier or segment, the system doesn't accumulate actions. Instead, when the specific trigger is met, it directly evaluates whether the challenge is achieved.
Body Sample
Scenario: Adding a User Action in the Gamification System
when a user performs an action in the gamification system, the system carefully processes it to see if it contributes to any challenges. It validates the action, updates the user’s progress, assigns any rewards, and ensures everything is tracked correctly. The user is then informed of their progress, keeping them engaged and motivated.
Response
Indicates the success or failure of the operation.
Notes
The system supports both sum-based and non-sum-based triggers.
Actions marked as used are not counted in future evaluations to prevent duplicate milestone achievements.
The system can handle encrypted user IDs if required by configuration.
Last updated