---
title: "Update a trial policy"
method: PATCH
path: "/v3/trial-policies/{id}"
tags: ["TrialPolicies"]
---

# Update a trial policy

`PATCH /v3/trial-policies/{id}`

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

## Path parameters

- `id` string, required

## Request body

- TrialPolicyUpdateRequestModel
  - `name` string, nullable — Name of the policy.
  - `fingerprintMatchingStrategy` 'fuzzy' | 'exact' | 'loose', nullable — Strategy for matching machine fingerprint.
  - `allowVmActivation` boolean, nullable — Whether to allow an activation inside a virtual machine.
  - `allowContainerActivation` boolean, nullable — Whether to allow an activation inside a container.
  - `userLocked` boolean, nullable — Locks the activation to the machine user.
  - `disableGeoLocation` boolean, nullable — Whether IP address and geo-location should be stored.
  - `allowedIpRanges` string[], nullable — Allowed IP ranges. Leave empty to ignore.
  - `allowedCountries` string[], nullable — List of the allowed countries. Leave empty to ignore.
  - `disallowedCountries` string[], nullable — List of the disallowed countries. Leave empty to ignore.
  - `allowedIpAddresses` string[], nullable — List of the allowed ip addresses. Leave empty to ignore.
  - `disallowedIpAddresses` string[], nullable — List of the disallowed ip addresses. Leave empty to ignore.
  - `trialLength` integer, nullable — The duration after which the trial will expire.

## Response `200`

OK

- TrialPolicyDto
  - `id` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `name` string, required
  - `allowVmActivation` boolean, required
  - `allowContainerActivation` boolean, required
  - `userLocked` boolean, required
  - `disableGeoLocation` boolean, required
  - `allowedIpRange` string, nullable
  - `allowedIpRanges` string[], required
  - `allowedCountries` string[], required
  - `disallowedCountries` string[], required
  - `allowedIpAddresses` string[], required
  - `disallowedIpAddresses` string[], required
  - `trialLength` integer, required
  - `fingerprintMatchingStrategy` 'fuzzy' | 'exact' | 'loose', required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Server Error

---

[API](https://skmtc.net/cryptlex/apis/cryptlex-web-api.md) · [All operations](https://skmtc.net/cryptlex/apis/cryptlex-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cryptlex/cryptlex-web-api/versions/ec1259c12475/schema)
