Attribute option

Create a new attribute option

This endpoint allows you to create a new attribute option.

post/api/rest/v1/attributes/{attribute_code}/options

Request

  • Base URL
    http://demo.akeneo.com
  • Auth
    none declared

Path parameters

attribute_codestring required

Code of the attribute

Request body

codestring required

Code of option

attributestring

Code of attribute related to the attribute option

sort_orderinteger

Order of attribute option

Example request

{
  "code": "black",
  "attribute": "a_simple_select",
  "sort_order": 2,
  "labels": {
    "en_US": "Black",
    "fr_FR": "Noir"
  }
}

Response

Created

Changes

No recorded changes to this operation across all 70 revisions of this API.