Attributes Endpoint

Queries refer to attribute values — a country, a category — by numeric identifiers, not by their text. An attribute filter takes identifiers, and a JSON query result keys its groups by them. These two endpoints translate in both directions.

The TypeScript client does both translations for you, and a CSV list returns text directly.

Each attribute property names its collection in GET /models; pass it with every call. Several properties can share one collection.

Text to identifiers

Method: POST Path: /attributes/lookup

{ "collection": "country", "ids": ["Germany", "France", "Atlantis"], "closedWorld": true }
{ "shortIds": [17, 4, 0] }
Field Description
collection The property's collection
ids The attribute values, as text
closedWorld Send true: a value that is not in your data answers 0

The answer is positional — one identifier per value, in the order you sent them. Put the identifiers into an Attribute In / Attribute Not In condition's shortIds. A 0 means "not found" — never put it into a filter, where 0 means "no value"; use 9007199254740991 instead, which matches no row. See Filtering → Values that do not exist.

Identifiers to text

Method: GET or POST Path: /attributes/resolve

curl -H "Authorization: Bearer YOUR_API_TOKEN" \
  "https://{workspace}.{region}.engeene.com/attributes/resolve?collection=country&shortIds=17,4"

For more than 400 identifiers, POST the same as JSON:

{ "collection": "country", "shortIds": [17, 4] }
{
  "attributes": [
    { "id": "DE", "name": "Germany", "description": "Federal Republic of Germany" },
    { "id": "FR", "name": "France" }
  ]
}
Field Description
id The value as it was loaded
name Its display name, when one was uploaded
sort Its sort key, when one was uploaded
description Its long description, when one was uploaded
protection Present when your role hides this property's values: a (anonymized) or p (protected). The entry then carries no text

The answer is positional too; an identifier that cannot be resolved comes back as null. Show a value's name when it has one, otherwise its id.

Three identifiers are never resolved — they mark special rows in a query result:

Identifier Meaning
0 The attribute has no value
9007199254740991 Unknown — a reference to a record that does not exist, a row with no time, a measure with no value
9007199254740990 The "Other" row of a Top-N
← Render EndpointInfo Endpoint →