MageSmith
POSTConfigurableProduct · Magento 2.4.9 Admin · Magento_Catalog::products

POST /V1/configurable-products/:sku/options

POST /V1/configurable-products/:sku/options is a Magento 2 REST endpoint in the ConfigurableProduct module. Save option. Requires an admin Bearer token with ACL Magento_Catalog::products.

Last verified: against Magento 2.4.9.

Returns

int

Service contract

Magento\ConfigurableProduct\Api\OptionRepositoryInterface::save

Authorization

Admin Bearer token with ACL:

  • Magento_Catalog::products

Path parameters

sku string Required

Body parameters

option Magento\ConfigurableProduct\Api\Data\OptionInterface Required

Example request

Auto-generated from the service contract — paste-ready against your store's /rest/default base. Replace the host, store code, ACL token, and any required values before running.

Headers

Accept
application/json
Content-Type
application/json
Authorization
Bearer <ACCESS_TOKEN> admin token with ACL: Magento_Catalog::products

Path

/V1/configurable-products/{sku}/options

Body

{
  "option": {
    "attribute_id": "",
    "extension_attributes": {},
    "id": 0,
    "is_use_default": false,
    "label": "",
    "position": 0,
    "product_id": 0,
    "values": [
      {
        "extension_attributes": {},
        "value_index": 0
      }
    ]
  }
}

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.