All URIs are relative to http://localhost/rest/default
Method | HTTP request | Description |
---|---|---|
configurable_product_option_repository_v1_delete_by_id_delete | DELETE /V1/configurable-products/{sku}/options/{id} | |
configurable_product_option_repository_v1_get_get | GET /V1/configurable-products/{sku}/options/{id} | |
configurable_product_option_repository_v1_get_list_get | GET /V1/configurable-products/{sku}/options/all | |
configurable_product_option_repository_v1_save_post | POST /V1/configurable-products/{sku}/options | |
configurable_product_option_repository_v1_save_put | PUT /V1/configurable-products/{sku}/options/{id} |
bool configurable_product_option_repository_v1_delete_by_id_delete(sku, id)
Remove option from configurable product
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.ConfigurableProductOptionRepositoryV1Api()
sku = 'sku_example' # str |
id = 56 # int |
try:
api_response = api_instance.configurable_product_option_repository_v1_delete_by_id_delete(sku, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConfigurableProductOptionRepositoryV1Api->configurable_product_option_repository_v1_delete_by_id_delete: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sku | str | ||
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]
ConfigurableProductDataOptionInterface configurable_product_option_repository_v1_get_get(sku, id)
Get option for configurable product
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.ConfigurableProductOptionRepositoryV1Api()
sku = 'sku_example' # str |
id = 56 # int |
try:
api_response = api_instance.configurable_product_option_repository_v1_get_get(sku, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConfigurableProductOptionRepositoryV1Api->configurable_product_option_repository_v1_get_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sku | str | ||
id | int |
ConfigurableProductDataOptionInterface
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[ConfigurableProductDataOptionInterface] configurable_product_option_repository_v1_get_list_get(sku)
Get all options for configurable product
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.ConfigurableProductOptionRepositoryV1Api()
sku = 'sku_example' # str |
try:
api_response = api_instance.configurable_product_option_repository_v1_get_list_get(sku)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConfigurableProductOptionRepositoryV1Api->configurable_product_option_repository_v1_get_list_get: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sku | str |
list[ConfigurableProductDataOptionInterface]
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 configurable_product_option_repository_v1_save_post(sku, body=body)
Save option
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.ConfigurableProductOptionRepositoryV1Api()
sku = 'sku_example' # str |
body = swagger_client.Body122() # Body122 | (optional)
try:
api_response = api_instance.configurable_product_option_repository_v1_save_post(sku, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConfigurableProductOptionRepositoryV1Api->configurable_product_option_repository_v1_save_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sku | str | ||
body | Body122 | [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 configurable_product_option_repository_v1_save_put(sku, id, body=body)
Save option
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.ConfigurableProductOptionRepositoryV1Api()
sku = 'sku_example' # str |
id = 'id_example' # str |
body = swagger_client.Body121() # Body121 | (optional)
try:
api_response = api_instance.configurable_product_option_repository_v1_save_put(sku, id, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ConfigurableProductOptionRepositoryV1Api->configurable_product_option_repository_v1_save_put: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
sku | str | ||
id | str | ||
body | Body121 | [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]