Updates an existing feature of a product; only the fields set on the body are changed.
const url = 'https://example.com/api/v1/provision/admin/products/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/features/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"moduleName":"example","name":"example","description":"example","value":"example","version":"example","isEnabled":true,"includeInLicenseToken":true,"isAvailableDuringTrialPeriod":true,"isAvailableDuringGracePeriod":true,"isPaidFeature":true,"canModifyValueOnEntitlement":true,"featurePath":"example","featureCatalogId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","featureCode":"example","meterAggregationType":"CumulativeCounter","sortOrder":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/provision/admin/products/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/features/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "moduleName": "example", "name": "example", "description": "example", "value": "example", "version": "example", "isEnabled": true, "includeInLicenseToken": true, "isAvailableDuringTrialPeriod": true, "isAvailableDuringGracePeriod": true, "isPaidFeature": true, "canModifyValueOnEntitlement": true, "featurePath": "example", "featureCatalogId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "featureCode": "example", "meterAggregationType": "CumulativeCounter", "sortOrder": 1 }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The unique identifier of the product.
The unique identifier of the feature to update.
Request Bodyrequired
Section titled “Request Bodyrequired”Patch payload — unset/null properties are left unchanged.
Admin update payload for a product feature; null properties leave the existing value unchanged. Use ProductFeatureUpdateDto ProductFeatureUpdateDto.FromProductFeature(ProductFeatureDto feature) to prefill from a current ProductFeatureDto.
object
Where the feature appears among the product’s features.
Admin update payload for a product feature; null properties leave the existing value unchanged. Use ProductFeatureUpdateDto ProductFeatureUpdateDto.FromProductFeature(ProductFeatureDto feature) to prefill from a current ProductFeatureDto.
object
Where the feature appears among the product’s features.
Admin update payload for a product feature; null properties leave the existing value unchanged. Use ProductFeatureUpdateDto ProductFeatureUpdateDto.FromProductFeature(ProductFeatureDto feature) to prefill from a current ProductFeatureDto.
object
Where the feature appears among the product’s features.
Responses
Section titled “Responses”Returns the updated feature details.
A feature as defined on a product: default value, enablement, trial/grace availability, license-token inclusion, and metering configuration. Entitlements inherit these defaults.
object
Data type of a feature’s value; determines how Value strings are interpreted and enforced.
One allowed value of an Enumeration-typed feature.
object
When true, the feature is withheld for the duration of a trial even if enabled.
Who can see a feature.
Where the feature appears among the product’s features. The vendor sets it; every list of a product’s features is ordered by it, so the screens agree with each other.
A feature as defined on a product: default value, enablement, trial/grace availability, license-token inclusion, and metering configuration. Entitlements inherit these defaults.
object
Data type of a feature’s value; determines how Value strings are interpreted and enforced.
One allowed value of an Enumeration-typed feature.
object
When true, the feature is withheld for the duration of a trial even if enabled.
Who can see a feature.
Where the feature appears among the product’s features. The vendor sets it; every list of a product’s features is ordered by it, so the screens agree with each other.
Example
{ "featureType": "Boolean", "meterAggregationType": "CumulativeCounter", "visibility": "Public"}A feature as defined on a product: default value, enablement, trial/grace availability, license-token inclusion, and metering configuration. Entitlements inherit these defaults.
object
Data type of a feature’s value; determines how Value strings are interpreted and enforced.
One allowed value of an Enumeration-typed feature.
object
When true, the feature is withheld for the duration of a trial even if enabled.
Who can see a feature.
Where the feature appears among the product’s features. The vendor sets it; every list of a product’s features is ordered by it, so the screens agree with each other.
Example
{ "featureType": "Boolean", "meterAggregationType": "CumulativeCounter", "visibility": "Public"}