SpringImport\Swagger\Magento2\Client\ConfigurableProductLinkManagementV1Api
May 18, 2017 ยท View on GitHub
All URIs are relative to http://t213.vg/rest/default
| Method | HTTP request | Description |
|---|---|---|
| configurableProductLinkManagementV1AddChildPost | POST /V1/configurable-products/{sku}/child | |
| configurableProductLinkManagementV1GetChildrenGet | GET /V1/configurable-products/{sku}/children | |
| configurableProductLinkManagementV1RemoveChildDelete | DELETE /V1/configurable-products/{sku}/children/{childSku} |
configurableProductLinkManagementV1AddChildPost
bool configurableProductLinkManagementV1AddChildPost(body)
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\ConfigurableProductLinkManagementV1Api();
$sku = "sku_example"; // string |
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body108(); // \SpringImport\Swagger\Magento2\Client\Model\Body108 |
try {
$result = $api_instance->configurableProductLinkManagementV1AddChildPost($sku, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurableProductLinkManagementV1Api->configurableProductLinkManagementV1AddChildPost: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| sku | string | ||
| body | \SpringImport\Swagger\Magento2\Client\Model\Body108 | [optional] |
Return type
bool
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
configurableProductLinkManagementV1GetChildrenGet
\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductInterface[] configurableProductLinkManagementV1GetChildrenGet($sku)
Get all children for Configurable product
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\ConfigurableProductLinkManagementV1Api();
$sku = "sku_example"; // string |
try {
$result = $api_instance->configurableProductLinkManagementV1GetChildrenGet($sku);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurableProductLinkManagementV1Api->configurableProductLinkManagementV1GetChildrenGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| sku | string |
Return type
\SpringImport\Swagger\Magento2\Client\Model\CatalogDataProductInterface[]
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
configurableProductLinkManagementV1RemoveChildDelete
bool configurableProductLinkManagementV1RemoveChildDelete(childSku)
Remove configurable product option
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\ConfigurableProductLinkManagementV1Api();
$sku = "sku_example"; // string |
$childSku = "childSku_example"; // string |
try {
$result = $api_instance->configurableProductLinkManagementV1RemoveChildDelete($sku, $childSku);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurableProductLinkManagementV1Api->configurableProductLinkManagementV1RemoveChildDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| sku | string | ||
| childSku | string |
Return type
bool
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]