All URIs are relative to http://localhost/rest/default
Method | HTTP request | Description |
---|---|---|
downloadable_link_repository_v1_delete_delete | DELETE /V1/products/downloadable-links/{id} | |
downloadable_link_repository_v1_get_list_get | GET /V1/products/{sku}/downloadable-links | |
downloadable_link_repository_v1_save_post | POST /V1/products/{sku}/downloadable-links | |
downloadable_link_repository_v1_save_put | PUT /V1/products/{sku}/downloadable-links/{id} |
bool downloadable_link_repository_v1_delete_delete(id)
Delete downloadable link
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DownloadableLinkRepositoryV1Api()
id = 56 # int |
try:
api_response = api_instance.downloadable_link_repository_v1_delete_delete(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling DownloadableLinkRepositoryV1Api->downloadable_link_repository_v1_delete_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int |
bool
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[DownloadableDataLinkInterface] downloadable_link_repository_v1_get_list_get(sku)
List of links with associated samples
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DownloadableLinkRepositoryV1Api()
sku = 'sku_example' # str |
try:
api_response = api_instance.downloadable_link_repository_v1_get_list_get(sku)
pprint(api_response)
except ApiException as e:
print("Exception when calling DownloadableLinkRepositoryV1Api->downloadable_link_repository_v1_get_list_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sku | str |
list[DownloadableDataLinkInterface]
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
int downloadable_link_repository_v1_save_post(sku, body=body)
Update downloadable link of the given product (link type and its resources cannot be changed)
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DownloadableLinkRepositoryV1Api()
sku = 'sku_example' # str |
body = swagger_client.Body83() # Body83 | (optional)
try:
api_response = api_instance.downloadable_link_repository_v1_save_post(sku, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DownloadableLinkRepositoryV1Api->downloadable_link_repository_v1_save_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sku | str | ||
body | Body83 | [optional] |
int
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
int downloadable_link_repository_v1_save_put(sku, id, body=body)
Update downloadable link of the given product (link type and its resources cannot be changed)
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DownloadableLinkRepositoryV1Api()
sku = 'sku_example' # str |
id = 'id_example' # str |
body = swagger_client.Body84() # Body84 | (optional)
try:
api_response = api_instance.downloadable_link_repository_v1_save_put(sku, id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DownloadableLinkRepositoryV1Api->downloadable_link_repository_v1_save_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sku | str | ||
id | str | ||
body | Body84 | [optional] |
int
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]