/attributes
List attribute definitions
Returns the active product attribute definitions — the specification fields an item can carry — with the rules that govern their values: data type, unit, allowed values for a fixed list, numeric bounds, a pattern text must match, and whether an item may hold several values.
Show the full description
Use code when setting a value with PUT /preview/items/{itemNumber}/attributes/{attributeCode}, and when filtering GET /preview/items with ?attribute=.
Query parameters
| Field | Type | Description |
|---|---|---|
search
|
string | Matches the attribute code and name, case-insensitively and on partial words. |
page
|
integer | Page to return, 1-based. Default 1. |
pageSize
|
integer | Number of records per page. Default 50, max 200. |
Responses
PagedResult_PublicAttributeResponse
Paginated response: the fields below sit in items[], wrapped in totalCount, page, pageSize, totalPages, hasPreviousPage and hasNextPage. Paginated
| Field | Type | Description |
|---|---|---|
allowedValues
|
string[] · nullable | The permitted values when PublicApi.Preview.Items.Queries.PublicAttributeResponse.HasPredefinedValues is true. |
code
Required
|
string · nullable | Stable code, e.g. `material`. This is what you pass when setting a value. |
dataType
|
enum |
Data type of a product attribute value. Mirrors `Domain.Items.AttributeDataType`.
Determines how `attributes[].value` is formatted in responses and parsed in requests.
Text
WholeNumber
DecimalNumber
Boolean
Date
Url
Html
Color
|
description
|
string · nullable | Administrator-facing description of what the attribute means. |
group
|
string · nullable | Group the attribute is shown under, e.g. `Dimensions`. |
hasPredefinedValues
|
boolean | True when the attribute takes its value from PublicApi.Preview.Items.Queries.PublicAttributeResponse.AllowedValues rather than free input. |
isMultiValue
|
boolean | True when an item may hold several values for this attribute. |
isVisibleOnProductPage
|
boolean | True when the attribute is shown on the product page in the web shop. |
maxValue
|
decimal · nullable | Highest accepted value for a numeric attribute. Null means no upper bound. |
minValue
|
decimal · nullable | Lowest accepted value for a numeric attribute. Null means no lower bound. |
name
Required
|
string · nullable | Display name, e.g. `Material`. |
pattern
|
string · nullable | Regular expression a text value must match in full. Null means no pattern is enforced. |
unit
|
string · nullable | Unit shown after the value, e.g. `kg`. Null when the attribute has no unit. |
Standard errors:
401
403
Errors
Examples
curl "https://api.erp.fluit.cloud/preview/attributes"
{
"hasNextPage": true,
"hasPreviousPage": true,
"items": [
{
"allowedValues": [
"string"
],
"code": "string",
"dataType": "Text",
"description": "string",
"group": "string",
"hasPredefinedValues": true,
"isMultiValue": true,
"isVisibleOnProductPage": true,
"maxValue": "299.00",
"minValue": "299.00",
"name": "Acme AB",
"pattern": "string",
"unit": "st"
}
],
"page": 1,
"pageSize": 50,
"totalCount": 137,
"totalPages": 3
}
Base URL https://api.erp.fluit.cloud/preview. The response example is generated from the schema: the shape is right, the values are made up.