Update an activation

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

PATCH/v3/activations/{id}

Parameters

NameTypeInDescription
id*stringpathUnique identifier for the activation.

Request Body Schema

PropertyTypeDescriptionConstraints
os*stringName of the operating system.enum: [windows, linux, macos, android, ios]
osVersionstringVersion of the operating system.min: 0, max: 256
fingerprint*stringFingerprint of the machine.min: 64, max: 1024
vmNamestringName of the virtual machine.min: 0, max: 256
containerbooleanWhether app is run inside a container.
hostname*stringName of the host machine.min: 1, max: 1024
userHash*stringHash of the machine user name.min: 1, max: 256
productId*stringUnique identifier for the product.min: 1, max: 256
accountId*stringUnique identifier for the account.min: 0, max: 256
releaseVersionstringThe release version of the app. Only following three formats are allowed x.x, x.x.x, x.x.x.x.min: 0, max: 256
releaseChannelstringThe release channel of the app.min: 0, max: 256
releasePlatformstringThe release platform of the app.min: 0, max: 256
releasePublishedAtstringThis release published date (UTC) of the app.format: date-time
key*stringLicense key to activate the license.min: 1, max: 256
userIdstringUnique identifier for the user.min: 0, max: 256
leaseDurationintegerLease duration of the activation in case of hosted floating license. Set to 0 or -1 for unlimited.min: -1, max: 9223372036854776000, format: int64
metadataarrayList of metdata key/value pairs.items: object
key*stringName of the key.min: 1, max: 256
value*stringValue of the key.min: 0, max: 4096
meterAttributesarrayList of meter attributes.items: object
name*stringName of the attribute.min: 1, max: 256
usesIncrement*integerPositive or negative increment to update the uses of the attribute.format: int64
deviceIdstringUnique identifier for the device.format: uuid
deviceChallengestringDevice challenge.min: 1, max: 256
deviceChallengeSignaturestringChallenge signature of the device.min: 1, max: 1024

Request Example

{
  "os": "windows",
  "osVersion": "string",
  "fingerprint": "stringstringstringstringstringstringstringstringstringstringstri",
  "vmName": "string",
  "container": true,
  "hostname": "string",
  "userHash": "string",
  "productId": "string",
  "accountId": "string",
  "releaseVersion": "string",
  "releaseChannel": "string",
  "releasePlatform": "string",
  "releasePublishedAt": "2019-08-24T14:15:22Z",
  "key": "string",
  "userId": "string",
  "leaseDuration": -1,
  "metadata": [
    {
      "key": "string",
      "value": "string"
    }
  ],
  "meterAttributes": [
    {
      "name": "string",
      "usesIncrement": 0
    }
  ],
  "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
  "deviceChallenge": "string",
  "deviceChallengeSignature": "string"
}
Triggers webhook: activation.updated
POST <your-webhook-url>
{
  "event": "activation.updated",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "os": "windows",
    "osVersion": "string",
    "hostname": "string",
    "location": {
      "ipAddress": "string",
      "countryCode": "string",
      "countryName": "string",
      "regionCode": "string",
      "regionName": "string",
      "city": "string",
      "zipCode": "string",
      "timeZone": "string",
      "latitude": 0.1,
      "longitude": 0.1
    },
    "vmName": "string",
    "container": true,
    "appVersion": "string",
    "releaseVersion": "string",
    "releaseChannel": "string",
    "releasePlatform": "string",
    "offline": true,
    "productId": "string",
    "expiresAt": "2019-08-24T14:15:22Z",
    "licenseId": "string",
    "lastSyncedAt": "2019-08-24T14:15:22Z",
    "meterAttributes": [
      {
        "name": "string",
        "uses": 0
      }
    ],
    "leaseExpiresAt": "2019-08-24T14:15:22Z",
    "organization": {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "name": "string",
      "email": "string",
      "description": "string",
      "allowedUsers": 0,
      "address": {
        "addressLine1": "string",
        "addressLine2": "string",
        "city": "string",
        "state": "string",
        "country": "string",
        "postalCode": "string"
      },
      "resellerId": "string",
      "reseller": {
        "id": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z",
        "name": "string",
        "email": "string",
        "description": "string",
        "allowedUsers": 0,
        "allowedOrganizations": 0
      }
    },
    "userId": "string",
    "user": {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "email": "string",
      "role": "string",
      "twoFactorEnabled": true,
      "googleSsoEnabled": true,
      "lastLoginAt": "2019-08-24T14:15:22Z",
      "company": "string",
      "allowCustomerPortalAccess": true,
      "roles": [
        "string"
      ],
      "lastSeenAt": "2019-08-24T14:15:22Z",
      "organizationId": "string",
      "organization": {
        "id": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z",
        "name": "string",
        "email": "string",
        "description": "string",
        "allowedUsers": 0,
        "address": {
          "addressLine1": "string",
          "addressLine2": "string",
          "city": "string",
          "state": "string",
          "country": "string",
          "postalCode": "string"
        },
        "resellerId": "string",
        "reseller": {
          "id": "string",
          "createdAt": "2019-08-24T14:15:22Z",
          "updatedAt": "2019-08-24T14:15:22Z",
          "name": "string",
          "email": "string",
          "description": "string",
          "allowedUsers": 0,
          "allowedOrganizations": 0
        }
      },
      "resellerId": "string",
      "reseller": {
        "id": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z",
        "name": "string",
        "email": "string",
        "description": "string",
        "allowedUsers": 0,
        "allowedOrganizations": 0
      },
      "metadata": [
        {
          "id": "string",
          "createdAt": "2019-08-24T14:15:22Z",
          "updatedAt": "2019-08-24T14:15:22Z",
          "key": "string",
          "value": "string",
          "viewPermissions": [
            "activation"
          ],
          "visible": true
        }
      ],
      "tags": [
        "string"
      ],
      "emailPreference": {
        "metrics": true
      }
    },
    "metadata": [
      {
        "id": "string",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z",
        "key": "string",
        "value": "string"
      }
    ]
  },
  "triggeredAt": "string"
}

Responses

200 OK
{
  "activationToken": "string"
}