v1
latestSwagger 2.02026-07-13137761.0 MBAttribute option
Create a new attribute option
This endpoint allows you to create a new attribute option.
post/api/rest/v1/attributes/{attribute_code}/options
Path parameters
attribute_codestring required
Code of the attribute
Request body
Example request
{
"code": "black",
"attribute": "a_simple_select",
"sort_order": 2,
"labels": {
"en_US": "Black",
"fr_FR": "Noir"
}
}Response
Created