service/LicenseTemplateService.php
public static function update(Context $context, $number, LicenseTemplate $licenseTemplate)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

        $response = NetLicensingService::getInstance()
            ->post($context, Constants::LICENSE_TEMPLATE_ENDPOINT_PATH . '/' . $number, $licenseTemplate->asPropertiesMap());

        $updatedLicenseTemplate = null;

        if (!empty($response->items->item[0])) {
            $updatedLicenseTemplate = ItemToLicenseTemplateConverter::convert($response->items->item[0]);
            $updatedLicenseTemplate->exists = true;
        }

        return $updatedLicenseTemplate;
    }
public static function update(Context $context, $number, LicenseTemplate $licenseTemplate)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

        $response = NetLicensingService::getInstance()
            ->post($context, Constants::LICENSE_TEMPLATE_ENDPOINT_PATH . '/' . $number, $licenseTemplate->asPropertiesMap());

        $updatedLicenseTemplate = null;

        if (!empty($response->items->item[0])) {
            $updatedLicenseTemplate = ItemToLicenseTemplateConverter::convert($response->items->item[0]);
            $updatedLicenseTemplate->exists = true;
        }

        return $updatedLicenseTemplate;
    }
Updates license template properties.See NetLicensingAPI for details:
https://www.labs64.de/confluence/display/NLICPUB/License+Template+Services#LicenseTemplateServices-Updatelicensetemplate

determines the vendor on whose behalf the call is performed
@param \NetLicensing\Context $context

license template number
@param string $number

non-null properties will be updated to the provided values, null properties will stay unchanged.
@param LicenseTemplate $licenseTemplate

updated license template.
@return LicenseTemplate|null
@throws \ErrorException
@throws RestException
@throws MalformedArgumentsException