All URIs are relative to http://ce22.vg/index.php/rest/default
| Method | HTTP request | Description |
|---|---|---|
| catalogAttributeSetManagementV1CreatePost | POST /V1/products/attribute-sets |
\Krak\MagentoApiClient\Model\EavDataAttributeSetInterface catalogAttributeSetManagementV1CreatePost($catalogAttributeSetManagementV1CreatePostBody)
Create attribute set from data
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
$config = Krak\MagentoApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Krak\MagentoApiClient\Api\CatalogAttributeSetManagementV1Api(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$catalogAttributeSetManagementV1CreatePostBody = new \Krak\MagentoApiClient\Model\CatalogAttributeSetManagementV1CreatePostBody(); // \Krak\MagentoApiClient\Model\CatalogAttributeSetManagementV1CreatePostBody |
try {
$result = $apiInstance->catalogAttributeSetManagementV1CreatePost($catalogAttributeSetManagementV1CreatePostBody);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CatalogAttributeSetManagementV1Api->catalogAttributeSetManagementV1CreatePost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| catalogAttributeSetManagementV1CreatePostBody | \Krak\MagentoApiClient\Model\CatalogAttributeSetManagementV1CreatePostBody | [optional] |
\Krak\MagentoApiClient\Model\EavDataAttributeSetInterface
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]