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
Body parameters
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
Path
/V1/configurable-products/{sku}/optionsBody
{
"option": {
"attribute_id": "",
"extension_attributes": {},
"id": 0,
"is_use_default": false,
"label": "",
"position": 0,
"product_id": 0,
"values": [
{
"extension_attributes": {},
"value_index": 0
}
]
}
}Related in ConfigurableProduct
Other endpoints shipped by the same module.
/V1/configurable-products/:sku/child
ConfigurableProduct · Magento\ConfigurableProduct\Api\LinkManagementInterface::addChild
/V1/configurable-products/:sku/children
Get all children for Configurable product
ConfigurableProduct · Magento\ConfigurableProduct\Api\LinkManagementInterface::getChildren
/V1/configurable-products/:sku/children/:childSku
Remove configurable product option
ConfigurableProduct · Magento\ConfigurableProduct\Api\LinkManagementInterface::removeChild
/V1/configurable-products/:sku/options/:id
Remove option from configurable product
ConfigurableProduct · Magento\ConfigurableProduct\Api\OptionRepositoryInterface::deleteById
/V1/configurable-products/:sku/options/:id
Get option for configurable product
ConfigurableProduct · Magento\ConfigurableProduct\Api\OptionRepositoryInterface::get
/V1/configurable-products/:sku/options/:id
Save option
ConfigurableProduct · Magento\ConfigurableProduct\Api\OptionRepositoryInterface::save
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.