Options
Update attribute option
Path parameters
attributeCodestringRequiredExample:
(Required)
<string>
optionIdstringRequiredExample:
(Required)
<integer>
Header parameters
Content-TypestringOptionalExample:
application/json
Body
objectOptionalExample:
{"option":{"label":"Duis Lorem in sit","value":"velit eu in qui","sort_order":37793088,"is_default":true,"store_labels":[{"store_id":{"value":"<Error: Too many levels of nesting to fake this schema>"},"label":{"value":"<Error: Too many levels of nesting to fake this schema>"}},{"store_id":{"value":"<Error: Too many levels of nesting to fake this schema>"},"label":{"value":"<Error: Too many levels of nesting to fake this schema>"}}]}}
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
put
PUT /V1/products/attributes/{attributeCode}/options/{optionId} HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 437
{
"option": {
"label": "Duis Lorem in sit",
"value": "velit eu in qui",
"sort_order": 37793088,
"is_default": true,
"store_labels": [
{
"store_id": {
"value": "<Error: Too many levels of nesting to fake this schema>"
},
"label": {
"value": "<Error: Too many levels of nesting to fake this schema>"
}
},
{
"store_id": {
"value": "<Error: Too many levels of nesting to fake this schema>"
},
"label": {
"value": "<Error: Too many levels of nesting to fake this schema>"
}
}
]
}
}
true
Delete option from attribute
Path parameters
attributeCodestringRequiredExample:
(Required)
<string>
optionIdstringRequiredExample:
(Required)
<string>
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
delete
DELETE /V1/products/attributes/{attributeCode}/options/{optionId} HTTP/1.1
Host: {{baseurl}}
Accept: */*
true
Retrieve list of attribute options
Path parameters
attributeCodestringRequiredExample:
(Required)
<string>
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
get
GET /V1/products/attributes/{attributeCode}/options HTTP/1.1
Host: {{baseurl}}
Accept: */*
[
{
"label": "ut in exercitation minim",
"value": "commodo velit voluptate aliquip proident",
"sort_order": 47084838,
"is_default": false,
"store_labels": [
{
"store_id": {
"value": "<Error: Too many levels of nesting to fake this schema>"
},
"label": {
"value": "<Error: Too many levels of nesting to fake this schema>"
}
},
{
"store_id": {
"value": "<Error: Too many levels of nesting to fake this schema>"
},
"label": {
"value": "<Error: Too many levels of nesting to fake this schema>"
}
}
]
},
{
"label": "labore sunt in adipisicing",
"value": "non enim cupidatat",
"sort_order": -7920926,
"is_default": true,
"store_labels": [
{
"store_id": {
"value": "<Error: Too many levels of nesting to fake this schema>"
},
"label": {
"value": "<Error: Too many levels of nesting to fake this schema>"
}
},
{
"store_id": {
"value": "<Error: Too many levels of nesting to fake this schema>"
},
"label": {
"value": "<Error: Too many levels of nesting to fake this schema>"
}
}
]
}
]
Add option to attribute
Path parameters
attributeCodestringRequiredExample:
(Required)
<string>
Header parameters
Content-TypestringOptionalExample:
application/json
Body
objectOptionalExample:
{"option":{"label":"Duis Lorem in sit","value":"velit eu in qui","sort_order":37793088,"is_default":true,"store_labels":[{"store_id":{"value":"<Error: Too many levels of nesting to fake this schema>"},"label":{"value":"<Error: Too many levels of nesting to fake this schema>"}},{"store_id":{"value":"<Error: Too many levels of nesting to fake this schema>"},"label":{"value":"<Error: Too many levels of nesting to fake this schema>"}}]}}
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
POST /V1/products/attributes/{attributeCode}/options HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 437
{
"option": {
"label": "Duis Lorem in sit",
"value": "velit eu in qui",
"sort_order": 37793088,
"is_default": true,
"store_labels": [
{
"store_id": {
"value": "<Error: Too many levels of nesting to fake this schema>"
},
"label": {
"value": "<Error: Too many levels of nesting to fake this schema>"
}
},
{
"store_id": {
"value": "<Error: Too many levels of nesting to fake this schema>"
},
"label": {
"value": "<Error: Too many levels of nesting to fake this schema>"
}
}
]
}
}
proident in