Increment/Decrement Numeric Property
This API enables you to increment/decrement values of numeric properties of your users listed in your User Profiles. If the user with distinct ID doesn't exist, it creates a new user with the provided distinct ID and updates values for all the provided properties. To decrement property values, you can pass a negative value.
Note: If a property was not created earlier, it will create a new property and the data type of the property will set to Number. For example, if you $add a new property called ltv=1200, it will create the ltv property with Number type and value 1200. Do not enclose the value in double quotes as they must be of numeric type.
These user properties can be used to filter your users for creating user cohorts and campaigns.
Path parameters
Enter your workspace ID. You can obtain this value from the API Keys page within your Fyno account.
Specify the version for which you would like to update the user property.
Request body
Example request
{
"$add": {
"property_1": 23.4,
"property_2": 20301,
"property_n": -39.45
},
"distinct_id": "XXXXXXXX"
}Response
Request has been accepted and will be processed asynchronously.
Example response
{
"request_id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}Changes
Changed in 3 of the 35 revisions of this API.35
- ○
the response property
_messagebecame required for the status400response-property-became-required
- ○
the response property
_messagebecame required for the status401response-property-became-required
- ○
the response property
statusbecame required for the status400response-property-became-required
- ○
the response property
statusbecame required for the status401response-property-became-required
- ○
- ●
removed the request property
$add/property_1request-property-removed
- ●
removed the request property
$add/property_2request-property-removed
- ●
removed the request property
$add/property_nrequest-property-removed
- ●
- ○
endpoint added
endpoint-added
This revision also has 22 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○