User-Created Challenges

User-created challenges let people set their own goals. Unlike milestones set by brands, this puts users in control. They create challenges for themselves and earn rewards for completing them.

For example, a fitness brand has an app that lets users create personal challenges. For instance, a user might set a goal to drink eight glasses of water every day. They log their water intake in the app. When they reach their goal consistently for a week, they earn points. These points can be used for discounts on fitness gear or healthy snacks. This way, users feel accomplished and get rewarded for taking care of their health.

📘

Notes

Raise a JIRA ticket to enable user-created challenges for your organisation.

🚧

Attention

  • Once a user-created target group is created, it cannot be changed to a default target.
  • Currently, a maximum of one Target Rule (expression) can be configured for a user-created target group.
  • The Target Rules created must be of the enrolmentMethod IMPORT for a user-created target group.

The following table list the APIs that can be used to create and get details of user-created challenges:

ObjectiveAPINotes
Create behavioral eventCreate eventCreate and publish a new behavioural event or use an existing event.
Create a user-created targetCreate target groupsCreate the target for the behavioural event. Set the default values for the target as 2 for targetType=COUNT.
Create a promotionCreate promotion for UCCWhile creating the promotion, set the value of id to -1 under the promotion, rulesetInfos and rules. This indicates that a new promotion request is being made in the backend.
Enroll a user on a user-created targetEnroll a user to a milestone or streakEnrolling a user on a user-created target can be done using the enrol API. Set the targetGroupId and targetID of the user-created target.
Unenroll a user from a user-created targetUnenroll a user from a milestone or streakEnrolling a user on a user-created target can be done using the enrol API. Set the targetGroupId and targetID of the user-created target.
Get all milestones in an organisationGet all milestonesSet the includeUserCreatedTargetGroups parameter in the request body as true to get data related to UCC.
Get promotion dataGet Promotion DataSet the sourceType as USER_CREATEDto filter filter promotions created for UCC.
Get all user-created target groupsGet target groups based on IDSet the includeUserCreatedTargetGroups parameter in the request body as true to get data related to UCC.
Get user created target groups by tracking typeGet all milestonesSet the includeUserCreatedTargetGroups parameter in the request body as true to get data related to UCC.
Get all active targets of a customerGet active targetsSet the includeUserCreatedTargetGroups parameter in the request body as true to get data related to UCC.