Options

configurable Product Option Repository V1Get Get

get

Get option for configurable product

Path parameters
skustringRequired

(Required)

Example: <string>
idstringRequired

(Required)

Example: <integer>
Responses
200

OK

application/json
Responseobject
get
/V1/configurable-products/{sku}/options/{id}
GET /V1/configurable-products/{sku}/options/{id} HTTP/1.1
Host: {{baseurl}}
Accept: */*
{
  "id": "<integer>",
  "attribute_id": "<string>",
  "label": "<string>",
  "position": "<integer>",
  "is_use_default": "<boolean>",
  "values": [
    {
      "value_index": -7808202,
      "extension_attributes": {}
    },
    {
      "value_index": 36675501,
      "extension_attributes": {}
    }
  ],
  "extension_attributes": "<object>",
  "product_id": "<integer>"
}

configurable Product Option Repository V1Save Put

put

Save option

Path parameters
skustringRequired

(Required)

Example: <string>
idstringRequired

(Required)

Example: <string>
Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"option":{"id":"<integer>","attribute_id":"<string>","label":"<string>","position":"<integer>","is_use_default":"<boolean>","values":[{"value":"<Error: Too many levels of nesting to fake this schema>"},{"value":"<Error: Too many levels of nesting to fake this schema>"}],"extension_attributes":"<object>","product_id":"<integer>"}}
Responses
200

OK

application/json
Responseobject
put
/V1/configurable-products/{sku}/options/{id}
PUT /V1/configurable-products/{sku}/options/{id} HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 332

{
  "option": {
    "id": "<integer>",
    "attribute_id": "<string>",
    "label": "<string>",
    "position": "<integer>",
    "is_use_default": "<boolean>",
    "values": [
      {
        "value": "<Error: Too many levels of nesting to fake this schema>"
      },
      {
        "value": "<Error: Too many levels of nesting to fake this schema>"
      }
    ],
    "extension_attributes": "<object>",
    "product_id": "<integer>"
  }
}
66689314

configurable Product Option Repository V1Delete By Id Delete

delete

Remove option from configurable product

Path parameters
skustringRequired

(Required)

Example: <string>
idstringRequired

(Required)

Example: <integer>
Responses
200

OK

application/json
Responseobject
delete
/V1/configurable-products/{sku}/options/{id}
DELETE /V1/configurable-products/{sku}/options/{id} HTTP/1.1
Host: {{baseurl}}
Accept: */*
true

configurable Product Option Repository V1Save Post

post

Save option

Path parameters
skustringRequired

(Required)

Example: <string>
Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"option":{"id":"<integer>","attribute_id":"<string>","label":"<string>","position":"<integer>","is_use_default":"<boolean>","values":[{"value":"<Error: Too many levels of nesting to fake this schema>"},{"value":"<Error: Too many levels of nesting to fake this schema>"}],"extension_attributes":"<object>","product_id":"<integer>"}}
Responses
200

OK

application/json
Responseobject
post
/V1/configurable-products/{sku}/options
POST /V1/configurable-products/{sku}/options HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 332

{
  "option": {
    "id": "<integer>",
    "attribute_id": "<string>",
    "label": "<string>",
    "position": "<integer>",
    "is_use_default": "<boolean>",
    "values": [
      {
        "value": "<Error: Too many levels of nesting to fake this schema>"
      },
      {
        "value": "<Error: Too many levels of nesting to fake this schema>"
      }
    ],
    "extension_attributes": "<object>",
    "product_id": "<integer>"
  }
}
66689314