---
title: "Update an activation"
method: PATCH
path: "/v3/activations/{id}"
tags: ["Activations"]
---

# Update an activation

`PATCH /v3/activations/{id}`

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

## Path parameters

- `id` string, required

## Request body

- ActivationUpdateRequestModel
  - `os` 'windows' | 'linux' | 'macos' | 'android' | 'ios', required — Name of the operating system.
  - `osVersion` string, nullable — Version of the operating system.
  - `fingerprint` string, required — Fingerprint of the machine.
  - `vmName` string, nullable — Name of the virtual machine.
  - `container` boolean, nullable — Whether app is run inside a container.
  - `hostname` string, required — Name of the host machine.
  - `userHash` string, required — Hash of the machine user name.
  - `productId` string, required — Unique identifier for the product.
  - `accountId` string, nullable, required — Unique identifier for the account.
  - `releaseVersion` string, nullable — The release version of the app. Only following three formats are allowed x.x, x.x.x, x.x.x.x.
  - `releaseChannel` string, nullable — The release channel of the app.
  - `releasePlatform` string, nullable — The release platform of the app.
  - `releasePublishedAt` string, date-time, nullable — This release published date (UTC) of the app.
  - `key` string, required — License key to activate the license.
  - `userId` string, nullable — Unique identifier for the user.
  - `leaseDuration` integer, nullable — Lease duration of the activation in case of hosted floating license. Set to 0 or -1 for unlimited.
  - `metadata` ActivationMetadataRequestModel[], nullable — List of metdata key/value pairs.
    - `key` string, required — Name of the key.
    - `value` string, required — Value of the key.
  - `meterAttributes` ActivationMeterAttributeRequestModel[], nullable — List of meter attributes.
    - `name` string, required — Name of the attribute.
    - `usesIncrement` integer, required — Positive or negative increment to update the uses of the attribute.
  - `deviceId` string, uuid, nullable — Unique identifier for the device.
  - `deviceChallenge` string, nullable — Device challenge.
  - `deviceChallengeSignature` string, nullable — Challenge signature of the device.

## Response `200`

OK

- ActivationTokenDto
  - `activationToken` string, required

## Other responses

- `400` — Bad Request
- `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)
