Update a trial policy

Updates the specified trial policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

PATCH/v3/trial-policies/{id}
JWT
trialPolicy:write

Parameters

NameTypeInDescription
id*stringpathUnique identifier for the trial policy.

Request Body Schema

PropertyTypeDescriptionConstraints
namestringName of the policy.min: 1, max: 256
fingerprintMatchingStrategystringStrategy for matching machine fingerprint.enum: [fuzzy, exact, loose]
allowVmActivationbooleanWhether to allow an activation inside a virtual machine.
allowContainerActivationbooleanWhether to allow an activation inside a container.
userLockedbooleanLocks the activation to the machine user.
disableGeoLocationbooleanWhether IP address and geo-location should be stored.
allowedIpRangesarrayAllowed IP ranges. Leave empty to ignore.items: string
allowedCountriesarrayList of the allowed countries. Leave empty to ignore.items: string
disallowedCountriesarrayList of the disallowed countries. Leave empty to ignore.items: string
allowedIpAddressesarrayList of the allowed ip addresses. Leave empty to ignore.items: string
disallowedIpAddressesarrayList of the disallowed ip addresses. Leave empty to ignore.items: string
trialLengthintegerThe duration after which the trial will expire.min: 1, max: 2147483647, format: int32

Request Example

{
  "name": "string",
  "fingerprintMatchingStrategy": "fuzzy",
  "allowVmActivation": true,
  "allowContainerActivation": true,
  "userLocked": true,
  "disableGeoLocation": true,
  "allowedIpRanges": [
    "string"
  ],
  "allowedCountries": [
    "string"
  ],
  "disallowedCountries": [
    "string"
  ],
  "allowedIpAddresses": [
    "string"
  ],
  "disallowedIpAddresses": [
    "string"
  ],
  "trialLength": 1
}
Triggers webhook: trialPolicy.updated
POST <your-webhook-url>
{
  "event": "trialPolicy.updated",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "allowVmActivation": true,
    "allowContainerActivation": true,
    "userLocked": true,
    "disableGeoLocation": true,
    "allowedIpRange": "string",
    "allowedIpRanges": [
      "string"
    ],
    "allowedCountries": [
      "string"
    ],
    "disallowedCountries": [
      "string"
    ],
    "allowedIpAddresses": [
      "string"
    ],
    "disallowedIpAddresses": [
      "string"
    ],
    "trialLength": 0,
    "fingerprintMatchingStrategy": "fuzzy"
  },
  "triggeredAt": "string"
}

Responses

200 OK
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "allowVmActivation": true,
  "allowContainerActivation": true,
  "userLocked": true,
  "disableGeoLocation": true,
  "allowedIpRange": "string",
  "allowedIpRanges": [
    "string"
  ],
  "allowedCountries": [
    "string"
  ],
  "disallowedCountries": [
    "string"
  ],
  "allowedIpAddresses": [
    "string"
  ],
  "disallowedIpAddresses": [
    "string"
  ],
  "trialLength": 0,
  "fingerprintMatchingStrategy": "fuzzy"
}