MageSmith
POSTInventoryApi · Magento 2.4.9 Admin · Magento_InventoryApi::stock_source_link

POST /V1/inventory/stock-source-links

POST /V1/inventory/stock-source-links is a Magento 2 REST endpoint in the InventoryApi module. Save StockSourceLink list data. Requires an admin Bearer token with ACL Magento_InventoryApi::stock_source_link.

Last verified: against Magento 2.4.9.

Returns

void

Service contract

Magento\InventoryApi\Api\StockSourceLinksSaveInterface::execute

Authorization

Admin Bearer token with ACL:

  • Magento_InventoryApi::stock_source_link

Body parameters

links Magento\InventoryApi\Api\Data\StockSourceLinkInterface[] 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_InventoryApi::stock_source_link

Path

/V1/inventory/stock-source-links

Body

{
  "links": [
    {
      "extension_attributes": {},
      "priority": 0,
      "source_code": "",
      "stock_id": 0
    }
  ]
}

Every Magento dev tool, in one hosted workspace.

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