Attribute options
An Attribute option is one allowed value of a list attribute definition - Red or Black for a Color definition. Together, a definition’s options form the reference list products pick from: a product references an option in its attributes, rather than repeating the text.
Options are created and listed under their definition (/api/attribute_definitions/{definitionId}/options), then read, updated and deleted by their own id (/api/attribute_options/{id}). Only list definitions accept options: creating one under a string definition is rejected with 422.
Each option has a translatable value and a position that orders it within its definition.
The Attribute option object
Section titled “The Attribute option object”No properties.
Common workflows
Section titled “Common workflows”- Build the reference list. Create one option per allowed value under the definition. Omit
positionto append each at the end. - Reorder. Patch the
positionof an option, and list withorder[position]to read them in display order. - Localize. Read or write the translatable
valueper locale with theFlowkiwi-Localeheader.
Conventions
Section titled “Conventions”Version
Section titled “Version”This resource is only available in the unstable version. Select it with the request header:
Flowkiwi-Api-Version: unstableAuthentication and headers
Section titled “Authentication and headers”All requests require an OAuth 2.0 bearer token:
Authorization: Bearer <token>Reading requires the categories:read scope; writing also requires categories:write.
Set the active locale for translatable fields:
Flowkiwi-Locale: fr-FRPartial updates
Section titled “Partial updates”PATCH uses JSON Merge Patch with Content-Type: application/merge-patch+json.