Adds a new feature to a product.
const url = 'https://example.com/api/v1/provision/admin/products/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/features';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"featureCatalogId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","name":"example","moduleName":"example","featureCode":"example","description":"example","value":"example","units":"example","featureType":"Boolean","enumOptions":[{"value":"example","description":"example"}],"isAvailableDuringTrialPeriod":true,"isAvailableDuringGracePeriod":true,"isEnabled":true,"isPaidFeature":true,"includeInLicenseToken":true,"canModifyValueOnEntitlement":true,"canModifyEnabledOnEntitlement":true,"sortOrder":1,"missingFeatureCatalogBehavior":"Fail"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/provision/admin/products/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/features \ --header 'Content-Type: application/json' \ --data '{ "featureCatalogId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example", "moduleName": "example", "featureCode": "example", "description": "example", "value": "example", "units": "example", "featureType": "Boolean", "enumOptions": [ { "value": "example", "description": "example" } ], "isAvailableDuringTrialPeriod": true, "isAvailableDuringGracePeriod": true, "isEnabled": true, "isPaidFeature": true, "includeInLicenseToken": true, "canModifyValueOnEntitlement": true, "canModifyEnabledOnEntitlement": true, "sortOrder": 1, "missingFeatureCatalogBehavior": "Fail" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The unique identifier of the product.
Request Bodyrequired
Section titled “Request Bodyrequired”The details of the feature to be added.
Admin request to add a feature to a product. Links to a feature catalog entry via Guid? AddProductFeatureDto.FeatureCatalogId or string AddProductFeatureDto.FeatureCode; a missing catalog entry is handled per MissingFeatureCatalogBehavior AddProductFeatureDto.MissingFeatureCatalogBehavior.
object
One allowed value of an Enumeration-typed feature.
object
When true, the feature is withheld for the duration of a trial even if bool AddProductFeatureDto.IsEnabled is set. bool AddProductFeatureDto.IsAvailableDuringTrialPeriod only ever grants access to a feature that is otherwise off, so it cannot express “enabled, but not while trialling”; this can.
When true, the feature is embedded in the signed license token issued to clients.
When true, the feature’s value may be overridden per entitlement.
When true, the feature’s enabled flag may be overridden per entitlement.
Where the feature appears among the product’s features. Leave at 0 to append it after the ones already there.
What to do when a product feature references a feature code with no catalog entry.
Admin request to add a feature to a product. Links to a feature catalog entry via Guid? AddProductFeatureDto.FeatureCatalogId or string AddProductFeatureDto.FeatureCode; a missing catalog entry is handled per MissingFeatureCatalogBehavior AddProductFeatureDto.MissingFeatureCatalogBehavior.
object
One allowed value of an Enumeration-typed feature.
object
When true, the feature is withheld for the duration of a trial even if bool AddProductFeatureDto.IsEnabled is set. bool AddProductFeatureDto.IsAvailableDuringTrialPeriod only ever grants access to a feature that is otherwise off, so it cannot express “enabled, but not while trialling”; this can.
When true, the feature is embedded in the signed license token issued to clients.
When true, the feature’s value may be overridden per entitlement.
When true, the feature’s enabled flag may be overridden per entitlement.
Where the feature appears among the product’s features. Leave at 0 to append it after the ones already there.
What to do when a product feature references a feature code with no catalog entry.
Admin request to add a feature to a product. Links to a feature catalog entry via Guid? AddProductFeatureDto.FeatureCatalogId or string AddProductFeatureDto.FeatureCode; a missing catalog entry is handled per MissingFeatureCatalogBehavior AddProductFeatureDto.MissingFeatureCatalogBehavior.
object
One allowed value of an Enumeration-typed feature.
object
When true, the feature is withheld for the duration of a trial even if bool AddProductFeatureDto.IsEnabled is set. bool AddProductFeatureDto.IsAvailableDuringTrialPeriod only ever grants access to a feature that is otherwise off, so it cannot express “enabled, but not while trialling”; this can.
When true, the feature is embedded in the signed license token issued to clients.
When true, the feature’s value may be overridden per entitlement.
When true, the feature’s enabled flag may be overridden per entitlement.
Where the feature appears among the product’s features. Leave at 0 to append it after the ones already there.
What to do when a product feature references a feature code with no catalog entry.
Responses
Section titled “Responses”Returns the details of the newly added feature.
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"}