MageSmith
PUTBundle · Magento 2.4.9 Admin · Magento_Catalog::products

PUT /V1/bundle-products/options/:optionId

PUT /V1/bundle-products/options/:optionId 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

option Magento\Bundle\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/bundle-products/options/:optionId

Body

{
  "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": ""
  }
}

Every Magento dev tool, in one hosted workspace.

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