- $entityTypeCode = 'catalog_product';
- $entityType = $this->getEntityTypeByCode($entityTypeCode);
- $attributeSetName = 'new_attribute_set';
-
- $arguments = [
- 'entityTypeCode' => $entityTypeCode,
- 'attributeSet' => [
- 'attribute_set_name' => $attributeSetName,
- 'sort_order' => 500,
- ],
- 'skeletonId' => $entityType->getDefaultAttributeSetId(),
- ];
- $result = $this->_webApiCall($this->createServiceInfo, $arguments);