v1
latestSwagger 2.02026-07-13137761.0 MBAttribute option
Update/create an attribute option
This endpoint allows you to update a given attribute option. Know more about <a href="/documentation/update.html#update-behavior">Update behavior</a>. Note that if no attribute option exists for the given code, it creates it. Please note that this endpoint applies a rate limit of 3 concurrent API requests per second.
patch/api/rest/v1/attributes/{attribute_code}/options/{code}
Path parameters
attribute_codestring required
Code of the attribute
codestring required
Code of the resource
Request body
Example request
{
"code": "black",
"attribute": "a_simple_select",
"sort_order": 2,
"labels": {
"en_US": "Black",
"fr_FR": "Noir"
}
}Response
Created