Skip to main content
PATCH
/
licenses
/
{licenseKey}
Update a license
curl --request PATCH \
  --url https://api.mclicense.org/licenses/{licenseKey} \
  --header 'Content-Type: application/json' \
  --header 'MCL-Key: <api-key>' \
  --data '
{
  "maxIps": 123,
  "expiresOn": "<string>",
  "user": "<string>"
}
'
{
  "key": "<string>",
  "pluginId": "<string>",
  "maxIps": 123,
  "expiresOn": "<string>",
  "user": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mclicense.org/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

MCL-Key
string
header
required

API key must start with 'mcl_'

Path Parameters

licenseKey
string
required

Body

application/json
maxIps
integer
expiresOn
string
user
string

Response

200 - application/json

License updated successfully

key
string
required
read-only

Unique license key (alphanumeric + hyphens, max 36 chars)

pluginId
string
required

ID of the associated plugin

maxIps
integer
required

Maximum number of IP addresses allowed

expiresOn
string

Expiration date in ISO 8601 format or 'Never'

user
string

Optional user identifier

createdAt
string<date-time>
read-only

License creation timestamp