Admin Catalog: Attributes
Add an option to a select/multiselect/checkbox attribute
Changed onCreates a new option for the given attribute. Only allowed when the attribute type is select, multiselect, or checkbox.
post/catalog/attributes/{attributeId}/options
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.
Request body
Example request
{
"admin_name": "Wool",
"sort_order": 2,
"swatch_alt": "Wool texture",
"swatch_file_name": "wool",
"locale": "en",
"translations": {
"en": {
"label": "Wool"
},
"fr": {
"label": "Laine"
}
}
}Response
Option created. 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