Update downloadable sample of the given product
Update downloadable sample of the given product
Body
-
isGlobalScopeContent boolean
POST /V1/products/{sku}/downloadable-links/samples
curl \
-X POST https://magento2.winkelstraat.mac/rest/all/V1/products/{sku}/downloadable-links/samples \
-d '{"sample":{"id":42,"title":"string","sort_order":42,"sample_type":"string","sample_file":"string","sample_file_content":{"file_data":"string","name":"string","extension_attributes":{}},"sample_url":"string","extension_attributes":{}},"isGlobalScopeContent":true}'
Request examples
{
"sample": {
"id": 42,
"title": "string",
"sort_order": 42,
"sample_type": "string",
"sample_file": "string",
"sample_file_content": {
"file_data": "string",
"name": "string",
"extension_attributes": {}
},
"sample_url": "string",
"extension_attributes": {}
},
"isGlobalScopeContent": true
}
Response examples (200)
42
Response examples (401)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}