post https://api.intempt.com/v1//projects//user-attributes/
For SCORING attribute you must provide configs as array of json objects that should contain next:
operator - string, allowed values: add, subtract
price - double, price to add for the filter
rule - string, rule of entering. Allowed values: once, multiple
duration - optional map of durations, same as timeframe duration
filter - segment filter object. Absolutely same as for segment itself
Examples of scoring attribute configs:
"configs": [
{
"filter": {
"$event": {
"eventId": "431617618710863872"
}
},
"operator": "add",
"price": 10.0,
"rule": "once",
"duration": {
"minutes": 1
}
},
{
"filter": {
"$segment": {
"segmentId": "431617570031771648"
}
},
"operator": "subtract",
"price": 5.0,
"rule": "once",
"duration": {
"hours": 1
}
}
]
"configs": [
{
"filter": {
"$event": {
"eventId": "431617618710863872",
"count": {"$eq": 10}
}
},
"operator": "add",
"price": 10734.05,
"rule": "multiple"
}
]