MageSmith
POSTBundle · Magento 2.4.9 Admin · Magento_Catalog::products

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

sku string Required
optionId int Required

Body parameters

linkedProduct Magento\Bundle\Api\Data\LinkInterface 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/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": ""
  }
}

Every Magento dev tool, in one hosted workspace.

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