Create points triggers
Create points triggers in bulk. Maximum 100 triggers per request.
Authorizations
Headers
The tenant identifier for multi-tenant organisations. Required when the organisation has multi-tenancy enabled. Pass your own internal customer ID for the tenant. Ignored for single-tenant organisations.
Path Parameters
The UUID of the points system.
Body
1 - 100 elementsThe type of trigger.
metric, achievement, streak, time, user_creation "metric"
The number of points to award or deduct when the trigger fires. Cannot be zero.
10
The status of the trigger. Defaults to 'inactive'.
active, inactive "inactive"
Optional user attribute filters for the trigger.
Required if type is metric. The UUID of the metric.
Required if type is metric. The metric increment that triggers the points.
x >= 1Optional event attribute filters. Only permitted if type is metric.
Required if type is achievement. The UUID of the achievement.
Required if type is streak. The number of streak periods that triggers the points.
x >= 1Required if type is time. The unit for the time interval.
hours, days Required if type is time. The number of time units between recurring awards.
x >= 1Whether to block metric events that would reduce the user's points below zero. Defaults to false.
Response
Request was valid but no triggers were created (all items had issues).