Get the predetermined list of an attribute by its id or code

Computes and returns the list of allowed values of an attribute that has a predetermined list function. The attribute is identified within the given tenant by either attribute_id or attribute_code (exactly one of them).

When lookup_attribute_value is given, it is used as the lookup value instead of the lookup_attribute_value stored in the extra_kwargs of the attribute's predetermined list function; otherwise the stored one is used.

To compute the list directly from the id of a predetermined list function, use predetermined_list_function/attribute/{id}/lookup/.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string

Code of the (non archived) attribute. Either attribute_id or attribute_code is required

integer

Id of the attribute. Either attribute_id or attribute_code is required

string

Value of the lookup attribute to filter the list on. When given, it is used instead of the lookup attribute value stored in the predetermined list function of the attribute

Formula functions in the lookup value: the lookup value (stored in extra_kwargs or given as lookup_attribute_value) can be a plain value or contain a formula function, which is resolved against the attributes of the asset being validated. Supported formula function: [$attribute.<Attribute Name>] ({$attribute.<Attribute Name>} also works). Examples:

  • [$attribute.Building]: replaced by the value of attribute Building; a single formula keeps the attribute's type, so numbers still match numbers
  • {$attribute.Building}: same, using curly braces
  • [$attribute.Site]-[$attribute.Floor]: several formulas mixed with text, the result is a string e.g. North-3
  • Level [$attribute.Floor]: formula embedded in plain text

If a referenced attribute is missing or empty the list is empty, i.e. no restriction is applied. This endpoint has no asset context, so a formula can not be resolved here and gives an empty list: use a plain lookup_attribute_value instead.

integer
required

Id of the tenant the attribute belongs to

Responses

400

tenant_id missing, neither or both of attribute_id and attribute_code given, or attribute_code matches several attributes

401

Not authenticated

403

User has no asset role on the tenant

404

No attribute with a predetermined list function found for this tenant

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json