POST /V1/bundle-products/:sku/links/:optionId
POST /V1/bundle-products/:sku/links/:optionId is a Magento 2 REST endpoint in the Bundle module. Add child product to specified Bundle option by product sku. Requires an admin Bearer token with ACL Magento_Catalog::products.
Last verified: against Magento 2.4.9.
Returns
int
Service contract
Magento\Bundle\Api\ProductLinkManagementInterface::addChildByProductSku
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/bundle-products/{sku}/links/{optionId}Body
{
"linkedProduct": {
"can_change_quantity": 0,
"extension_attributes": {},
"id": "",
"is_default": false,
"option_id": 0,
"position": 0,
"price": 0,
"price_type": 0,
"qty": 0,
"sku": ""
}
}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/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
/V1/bundle-products/:sku/options/all
Get all options for bundle product
Bundle · Magento\Bundle\Api\ProductOptionRepositoryInterface::getList
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.