Skip to main content
PUT
/
api
/
v1
/
dev
/
teams
/
{teamId}
/
licenses
/
id
/
{licenseId}
Update License
curl --request PUT \
  --url https://app.lukittu.com/api/v1/dev/teams/{teamId}/licenses/id/{licenseId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "licenseKey": "<string>",
  "expirationType": "DATE",
  "expirationStart": "CREATION",
  "expirationDate": "2023-11-07T05:31:56Z",
  "expirationDays": 2,
  "suspended": true,
  "productIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "customerIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "hwidLimit": 2,
  "ipLimit": 2,
  "metadata": [
    {
      "key": "<string>",
      "value": "<string>",
      "locked": true
    }
  ]
}'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "licenseKey": "<string>",
    "ipLimit": 1,
    "hwidLimit": 2,
    "expirationType": "NEVER",
    "expirationStart": "CREATION",
    "expirationDate": "2023-11-07T05:31:56Z",
    "expirationDays": 2,
    "suspended": true,
    "metadata": [
      {
        "key": "<string>",
        "value": "<string>",
        "locked": true
      }
    ],
    "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "lastActiveAt": "2023-11-07T05:31:56Z",
    "customers": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "email": "jsmith@example.com",
        "fullName": "<string>",
        "username": "<string>",
        "metadata": [
          {
            "key": "<string>",
            "value": "<string>",
            "locked": true
          }
        ],
        "address": {
          "street": "<string>",
          "city": "<string>",
          "state": "<string>",
          "country": "<string>",
          "postalCode": "<string>"
        },
        "discordAccount": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "discordId": "<string>",
          "username": "<string>",
          "avatar": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z"
        },
        "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ],
    "products": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "url": "<string>",
        "metadata": [
          {
            "key": "<string>",
            "value": "<string>",
            "locked": true
          }
        ],
        "teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ]
  },
  "result": {
    "timestamp": "2023-11-07T05:31:56Z",
    "valid": true,
    "details": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key authentication for development endpoints.

You can create API keys in your team's settings on the Lukittu dashboard. Include the API key in the Authorization header as: Bearer YOUR_API_KEY

Example:

Authorization: Bearer lukittu_api_key_abc123def456...

Path Parameters

teamId
string<uuid>
required

Your team's UUID. You can find this value in your team's settings on the Lukittu dashboard.

licenseId
string<uuid>
required

The unique identifier (UUID v4) of the license.

Body

application/json
licenseKey
string
required

Lukittu license key format: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX where X is an uppercase letter (A-Z) or digit (0-9)

expirationType
enum<string>
required

How the license expires

Available options:
DATE,
DURATION,
NEVER
suspended
boolean
required

Whether the license is suspended

productIds
string<uuid>[]
required

Array of product IDs to associate with this license

UUID v4 identifier

customerIds
string<uuid>[]
required

Array of customer IDs to associate with this license

UUID v4 identifier

metadata
object[]
required

Key-value metadata pairs

expirationStart
enum<string> | null

When duration-based expiration starts

Available options:
CREATION,
ACTIVATION
expirationDate
string<date-time> | null

Exact expiration date (for DATE expiration)

expirationDays
integer | null

Number of days until expiration (for DURATION expiration)

Required range: x >= 1
hwidLimit
integer | null

Maximum number of hardware identifiers

Required range: x >= 1
ipLimit
integer | null

Maximum number of IP addresses

Required range: x >= 1

Response

License updated successfully

data
object
required

Response data

result
object
required
I