Field Selection
The /data endpoint allows API consumers to retrieve data for the following record objects:
- Attributes
-
Augmented Attributes
In order to do so, the ids of the objects to be retrieved must be listed as part of the
fieldsquery parameter: -
fields:A comma-separated list of attribute, augmented attribute or flag ids for a given knowledge model record.
Note that:
-
fieldsis a mandatory query parameter. - The maximum number of objects per record that can be retrieved through the API Data endpoint is 200.
-
fieldsquery parameter is case-sensitive. The object ids must match the object ids returned by the record. schema endpoint (/knowledge-models/{km_id}/records/{record_id}). -
Each object id must be separated by a comma or alternatively, use the
fieldsquery parameter multiple times.
Example:
fields=ACTIVE,Category,APPROVAL or fields=ACTIVE&fields=Category&fields=APPROVAL Distinct data rows
If your request returns duplicate rows, then the way to deduplicate is by using the parameter options=distinct
:warning: If a
datefield is included in the request: Please make sure to useROUND_DAYin the PQL definition of the attribute in the Knowledge Model record !