Update downloadable link of the given product
Update downloadable link of the given product (link type and its resources cannot be changed)
Body
-
isGlobalScopeContent boolean
POST /V1/products/{sku}/downloadable-links
curl \
-X POST https://magento2.winkelstraat.mac/rest/all/V1/products/{sku}/downloadable-links \
-d '{"link":{"id":42,"title":"string","sort_order":42,"is_shareable":42,"price":42.0,"number_of_downloads":42,"link_type":"string","link_file":"string","link_file_content":{"file_data":"string","name":"string","extension_attributes":{}},"link_url":"string","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
{
"link": {
"id": 42,
"title": "string",
"sort_order": 42,
"is_shareable": 42,
"price": 42.0,
"number_of_downloads": 42,
"link_type": "string",
"link_file": "string",
"link_file_content": {
"file_data": "string",
"name": "string",
"extension_attributes": {}
},
"link_url": "string",
"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"
}