Update a license template
Updates the specified license template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
PATCH/v3/license-templates/{id}
JWT
licensePolicy:write
Parameters
| Name | Type | In | Description |
|---|---|---|---|
| id* | string | path | Unique identifier for the license template. |
Request Body Schema
| Property | Type | Description | Constraints |
|---|---|---|---|
| name | string | Name of the policy. | min: 1, max: 256 |
| fingerprintMatchingStrategy | string | Strategy for matching machine fingerprint. | enum: [fuzzy, exact, loose] |
| allowVmActivation | boolean | Whether to allow an activation inside a virtual machine. | |
| allowContainerActivation | boolean | Whether to allow an activation inside a container. | |
| userLocked | boolean | Locks the activation to the machine user. | |
| disableGeoLocation | boolean | Whether IP address and geo-location should be stored. | |
| allowedIpRanges | array | Allowed IP ranges. Leave empty to ignore. | items: string |
| allowedCountries | array | List of the allowed countries. Leave empty to ignore. | items: string |
| disallowedCountries | array | List of the disallowed countries. Leave empty to ignore. | items: string |
| allowedIpAddresses | array | List of the allowed ip addresses. Leave empty to ignore. | items: string |
| disallowedIpAddresses | array | List of the disallowed ip addresses. Leave empty to ignore. | items: string |
| subscriptionInterval | string | The length of time which determines the subscription renewal cadence. ISO8601 durations accepted. Examples: - P1Y (1 year) - P6M (6 months) - P1M (1 month) - P1W (1 week) - P7D (7 days) - PT24H (24 hours) | min: 0, max: 256 |
| subscriptionStartTrigger | string | enum: [creation, activation] | |
| allowedActivations | integer | Allowed number of activations for the license. Set to 0 or -1 for unlimited activations. | min: -1, max: 2147483647, format: int32 |
| allowedDeactivations | integer | Allowed number of deactivations for the license. Set to -1 for unlimited deactivations. This setting is ignored for floating licenses. | min: -1, max: 2147483647, format: int32 |
| type | string | Type of the license key. | enum: [node-locked, hosted-floating, on-premise-floating] |
| keyPattern | string | Regex for the license key pattern. | min: 0, max: 256 |
| leaseDuration | integer | Duration of lease for floating licenses. Set to 0 or -1 for unlimited lease duration. | min: -1, max: 2147483647, format: int32 |
| allowClientLeaseDuration | boolean | Allow client to set the lease duration for floating licenses. | |
| leasingStrategy | string | Leasing strategy for floating licenses. | enum: [per-machine, per-instance] |
| allowedFloatingClients | integer | Allowed number of floating clients for the On-Premise LexFloatServer. | min: 0, max: 2147483647, format: int32 |
| serverSyncGracePeriod | integer | The duration for which the server sync failure due to network error is acceptable. Set to -1 for unlimited grace period. | min: -1, max: 2147483647, format: int32 |
| serverSyncInterval | integer | The interval at which license data in client is synced with the server. | min: 180, max: 2147483647, format: int32 |
| allowedClockOffset | integer | The allowed clock offset between the network time and the local time. Set to -1 to disable clock validation checks. | min: -1, max: 2147483647, format: int32 |
| cryptoBindingEnabled | boolean | Whether crypto binding is enabled for the license. | |
| expiringSoonEventOffset | integer | The number of seconds to wait before license expiration date to trigger 'license.expiring-soon' webhook event. | min: 0, max: 2147483647, format: int32 |
| requiredMetadataKeys | array | List of required metadata keys which a license must have. | items: string |
| requiredMeterAttributes | array | List of required meter attributes which a license must have. | items: string |
Request Example
Responses
200
400
401
403
404
429
500