All URIs are relative to http://localhost/rest/default
| Method | HTTP request | Description |
|---|---|---|
| catalog_product_attribute_management_v1_assign_post | POST /V1/products/attribute-sets/attributes | |
| catalog_product_attribute_management_v1_get_attributes_get | GET /V1/products/attribute-sets/{attributeSetId}/attributes | |
| catalog_product_attribute_management_v1_unassign_delete | DELETE /V1/products/attribute-sets/{attributeSetId}/attributes/{attributeCode} |
int catalog_product_attribute_management_v1_assign_post(body=body)
Assign attribute to attribute set
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.CatalogProductAttributeManagementV1Api()
body = swagger_client.Body24() # Body24 | (optional)
try:
api_response = api_instance.catalog_product_attribute_management_v1_assign_post(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling CatalogProductAttributeManagementV1Api->catalog_product_attribute_management_v1_assign_post: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | Body24 | [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]
list[CatalogDataProductAttributeInterface] catalog_product_attribute_management_v1_get_attributes_get(attribute_set_id)
Retrieve related attributes based on given attribute set ID
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.CatalogProductAttributeManagementV1Api()
attribute_set_id = 'attribute_set_id_example' # str |
try:
api_response = api_instance.catalog_product_attribute_management_v1_get_attributes_get(attribute_set_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling CatalogProductAttributeManagementV1Api->catalog_product_attribute_management_v1_get_attributes_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| attribute_set_id | str |
list[CatalogDataProductAttributeInterface]
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool catalog_product_attribute_management_v1_unassign_delete(attribute_set_id, attribute_code)
Remove attribute from attribute set
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.CatalogProductAttributeManagementV1Api()
attribute_set_id = 'attribute_set_id_example' # str |
attribute_code = 'attribute_code_example' # str |
try:
api_response = api_instance.catalog_product_attribute_management_v1_unassign_delete(attribute_set_id, attribute_code)
pprint(api_response)
except ApiException as e:
print("Exception when calling CatalogProductAttributeManagementV1Api->catalog_product_attribute_management_v1_unassign_delete: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| attribute_set_id | str | ||
| attribute_code | str |
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]