SpringImport\Swagger\Magento2\Client\BundleProductOptionManagementV1Api

May 18, 2017 ยท View on GitHub

All URIs are relative to http://t213.vg/rest/default

MethodHTTP requestDescription
bundleProductOptionManagementV1SavePostPOST /V1/bundle-products/options/add
bundleProductOptionManagementV1SavePutPUT /V1/bundle-products/options/{optionId}

bundleProductOptionManagementV1SavePost

int bundleProductOptionManagementV1SavePost($body)

Add new option for bundle product

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\BundleProductOptionManagementV1Api();
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body44(); // \SpringImport\Swagger\Magento2\Client\Model\Body44 | 

try {
    $result = $api_instance->bundleProductOptionManagementV1SavePost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BundleProductOptionManagementV1Api->bundleProductOptionManagementV1SavePost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
body\SpringImport\Swagger\Magento2\Client\Model\Body44[optional]

Return type

int

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]

bundleProductOptionManagementV1SavePut

int bundleProductOptionManagementV1SavePut(optionId,optionId, body)

Add new option for bundle product

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new SpringImport\Swagger\Magento2\Client\Api\BundleProductOptionManagementV1Api();
$optionId = "optionId_example"; // string | 
$body = new \SpringImport\Swagger\Magento2\Client\Model\Body45(); // \SpringImport\Swagger\Magento2\Client\Model\Body45 | 

try {
    $result = $api_instance->bundleProductOptionManagementV1SavePut($optionId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BundleProductOptionManagementV1Api->bundleProductOptionManagementV1SavePut: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

NameTypeDescriptionNotes
optionIdstring
body\SpringImport\Swagger\Magento2\Client\Model\Body45[optional]

Return type

int

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]