Create

Create a variant of attribute

/api/attributes-select

Selective attribute allowed with select and multiselect attribute types

Method POST

Request Headers

x-token: 83d7e09f5cce1de1b1fc18f312667785ee6502cfb13f35ff98902a2fd0ecbb99

Request body

{
    "attributeId": 4,
    "value": "Brand 1",
    "subValue": ""
}

attributeId id of attribute with allowed type

value value for attribute variant

subValue alternative value for variant

Response

{
    "status": "ok",
    "data": {
        "id": 7,
        "value": "Brand 1",
        "subValue": ""
    }
}