GET /V1/products/:sku/downloadable-links/samples
GET /V1/products/:sku/downloadable-links/samples is a Magento 2 REST endpoint in the Downloadable module. List of samples for downloadable product. Requires an admin Bearer token with ACL Magento_Downloadable::downloadable.
Last verified: against Magento 2.4.9.
Returns
Magento\Downloadable\Api\Data\SampleInterface[]
Service contract
Magento\Downloadable\Api\SampleRepositoryInterface::getList
Authorization
Admin Bearer token with ACL:
- Magento_Downloadable::downloadable
Path 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/products/{sku}/downloadable-links/samplesRelated in Downloadable
Other endpoints shipped by the same module.
/V1/products/:sku/downloadable-links
List of links with associated samples
Downloadable · Magento\Downloadable\Api\LinkRepositoryInterface::getList
/V1/products/:sku/downloadable-links
Update downloadable link of the given product (link type and its resources cannot be changed)
Downloadable · Magento\Downloadable\Api\LinkRepositoryInterface::save
/V1/products/:sku/downloadable-links/:id
Update downloadable link of the given product (link type and its resources cannot be changed)
Downloadable · Magento\Downloadable\Api\LinkRepositoryInterface::save
/V1/products/:sku/downloadable-links/samples
Update downloadable sample of the given product
Downloadable · Magento\Downloadable\Api\SampleRepositoryInterface::save
/V1/products/:sku/downloadable-links/samples/:id
Update downloadable sample of the given product
Downloadable · Magento\Downloadable\Api\SampleRepositoryInterface::save
/V1/products/downloadable-links/:id
Delete downloadable link
Downloadable · Magento\Downloadable\Api\LinkRepositoryInterface::delete
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.