Skip to content

List attribute definitions

View as Markdown
get /api/attribute_definitions

Retrieves the collection of AttributeDefinition resources.

Returns a paginated collection of attribute definitions. Filter by type, code or id[], search the translated name (case-insensitive partial match in the Flowkiwi-Locale locale), and sort by order[createdAt] or order[updatedAt]. This endpoint is only available in the unstable version.

Headers

NameTypeRequiredDescription
Flowkiwi-Localestring-Specifies the locale for properties that support localization. If not provided, the default locale will be used.

Query parameters

NameTypeRequiredDescription
pageinteger-The collection page number
itemsPerPageinteger-The number of items per page
properties[]string[]-Allows you to reduce the response to contain only the properties you need. If your desired property is nested, you can address it using nested arrays. Example: properties[]={propertyName}&properties[]={anotherPropertyName}&properties[{nestedPropertyParent}][]={nestedProperty}
id[]string[]-Only the items with one of these ids, each a UUID or the item IRI.
typestring-AttributeDefinition type
type[]string[]-AttributeDefinition type
codestring-AttributeDefinition code
code[]string[]-AttributeDefinition code
namestring-Filter on the translated "name" field (case-insensitive partial match, uses the Flowkiwi-Locale header).
order[createdAt]string-AttributeDefinition order[createdAt]
order[updatedAt]string-AttributeDefinition order[updatedAt]

Response

200 - AttributeDefinition collection

PropertyTypeRequiredDescription
searchobject-
Show search fields
PropertyTypeRequiredDescription
@typestring-
mappingobject[]-
Show mapping fields
PropertyTypeRequiredDescription
@typestring-
propertystring | null-
requiredboolean-
variablestring-
templatestring-
variableRepresentationstring-
totalItemsinteger-
viewobject-
Show view fields
PropertyTypeRequiredDescription
@idstring-
@typestring-
firststring | null-
laststring | null-
nextstring | null-
previousstring | null-
memberAttributeDefinition[]required
Show member fields
PropertyTypeRequiredDescription
@contextstring | object-
@idstringrequired
@typestringrequired
categoriesstring[]-The categories this attribute definition is attached to. Requires the categories:read scope. Returned empty when the scope is missing.
codestring | null-The stable, machine-readable identifier of the attribute definition (e.g. color, care-instructions). Immutable once created.
createdAtstring-Creation date of the resource (ISO 8601 format).
idstring-
multipleboolean-Whether products may carry several values for this definition (one per option). Meaningful for list definitions only; always false for string definitions regardless of the requested value. Immutable once created.
namestring | null-This property supports translations.

The human-readable name of the attribute definition.
type"string" | "list" | null-The type of the attribute definition, determining whether its values are free text (string) or must come from a fixed set of options (list). Immutable once created.
updatedAtstring-Last modification date of the resource (ISO 8601 format).
valuesCountinteger-The count of the product attribute values that reference this definition.

Errors

403 - Access denied. The caller is missing one or more permissions required for this operation.

Content-Type: application/problem+json

PropertyTypeRequiredDescription
@contextstring | object-
@idstringrequired
@typestringrequired
detailstring-
missingPermissionsstring[]-Permissions that the caller is missing for this operation. Present only when the 403 is caused by a denied permission.
statusinteger-
titlestring-
typestring-