Skip to content

List attribute options

View as Markdown
get /api/attribute_definitions/{definitionId}/options

Retrieves the collection of AttributeOption resources.

Returns a paginated collection of the options of one attribute definition, identified by definitionId. Sort by order[position] to get them in display order, and set Flowkiwi-Locale to read the translatable value in a given locale. 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.

Path parameters

NameTypeRequiredDescription
definitionIdstringrequiredAttributeDefinitionResource identifier

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.
order[position]string-AttributeOption order[position]
order[createdAt]string-AttributeOption order[createdAt]
order[updatedAt]string-AttributeOption order[updatedAt]

Response

200 - AttributeOption 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-
memberAttributeOption[]required
Show member fields
PropertyTypeRequiredDescription
@contextstring | object-
@idstringrequired
@typestringrequired
createdAtstring-Creation date of the resource (ISO 8601 format).
definitionstring | null-The attribute definition this option belongs to. Requires the categories:read scope. Returned null when the scope is missing.
idstring-
positioninteger | null-The display position of the option within its definition, used for ordering. Omit on creation to append the option at the end.
updatedAtstring-Last modification date of the resource (ISO 8601 format).
valuestring | null-This property supports translations.

The value of the option.

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-