Number

Quantities, sums and metrics

Number attributes store floating point numbers with up to four decimal places of precision.

An example of a number attribute is the twitter_follower_count attribute on both the company and person objects.

Only single-select number attributes are supported.

Reading values

Number attribute values have a value property:

{
  "active_from": "2023-04-03T15:21:06.447000000Z",
  "active_until": null,
  "created_by_actor": {...},
  "attribute_type": "number",
  "value": 14
}

Writing values

To write number values, simply pass your desired number, either as an integer or a float. Alternatively, you can use an object with a single value property.

{
  "a_custom_number_attribute": 3.1415
}
{
  "a_custom_number_attribute": [
    {
      "value": 3.1415
    }
  ]
}

Please note that twitter_follower_count is a system attribute and cannot be written to from the API.

Filtering

Numbers can be filtered by the operators $eq, $gte, $gt,$lte,$lt. The implicit syntax does an exact equality check:

{
  "filter": {
    "twitter_follower_count": 14
  }
}
{
  "filter": {
    "twitter_follower_count": {
      "value": {
        "$gte": 1000
      }
    }
  }
}