POST /V1/bundle-products/options/add
POST /V1/bundle-products/options/add is a Magento 2 REST endpoint in the Bundle module. Add new option for bundle product. Requires an admin Bearer token with ACL Magento_Catalog::products.
Last verified: against Magento 2.4.9.
Returns
int
Service contract
Magento\Bundle\Api\ProductOptionManagementInterface::save
Authorization
Admin Bearer token with ACL:
- Magento_Catalog::products
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/bundle-products/options/addBody
{
"option": {
"extension_attributes": {},
"option_id": 0,
"position": 0,
"product_links": [
{
"can_change_quantity": 0,
"extension_attributes": {},
"id": "",
"is_default": false,
"option_id": 0,
"position": 0,
"price": 0,
"price_type": 0,
"qty": 0,
"sku": ""
}
],
"required": false,
"sku": "",
"title": "",
"type": ""
}
}Related in Bundle
Other endpoints shipped by the same module.
/V1/bundle-products/:productSku/children
Get all children for Bundle product
Bundle · Magento\Bundle\Api\ProductLinkManagementInterface::getChildren
/V1/bundle-products/:sku/links/:id
Bundle · Magento\Bundle\Api\ProductLinkManagementInterface::saveChild
/V1/bundle-products/:sku/links/:optionId
Add child product to specified Bundle option by product sku
Bundle · Magento\Bundle\Api\ProductLinkManagementInterface::addChildByProductSku
/V1/bundle-products/:sku/options/:optionId
Remove bundle option
Bundle · Magento\Bundle\Api\ProductOptionRepositoryInterface::deleteById
/V1/bundle-products/:sku/options/:optionId
Get option for bundle product
Bundle · Magento\Bundle\Api\ProductOptionRepositoryInterface::get
/V1/bundle-products/:sku/options/:optionId/children/:childSku
Remove product from Bundle product option
Bundle · Magento\Bundle\Api\ProductLinkManagementInterface::removeChild
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.