Admin Catalog: Attributes
Update an attribute option
Changed onPartially updates the given option. Only supplied fields are changed; translations merge per-locale.
put/catalog/attributes/{attributeId}/options/{optionId}
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
attributeIdinteger required
Example:12
Attribute ID.
optionIdinteger required
Example:45
Option ID.
Request body
Example request
{
"admin_name": "Merino Wool",
"sort_order": 1,
"swatch_alt": "Wool texture",
"swatch_file_name": "wool",
"locale": "en",
"translations": {
"en": {
"label": "Merino Wool"
},
"fr": {
"label": "Laine Mérinos"
}
}
}Response
Option updated. Returns the full attribute detail.
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info