PUT sitelicense

Update a sitelicense based on a specific license key. When updating a sitelicense, you may provide a JSON document representing a subset of fields of your sitelicense. Some fields are immutable and won’t be set even if you provide them, such as issueDate.

Validation methods are:

  • LICENSE_EXISTS_NOT_EXPIRED
  • DOMAIN_MATCH
  • IP_ADDRESS_MATCH
  • DOMAIN_AND_IP_ADDRESS_MATCH

Date format is:

  • YYYY-MM-DD HH:MM:SS (e.g. 2013-04-03 21:21:19)

Resource URL

https://api.easysoftwarelicensing.com/v1/sitelicenses/:licensekey

Where licensekey is the key for the license you want to update. The licensekey provided in the resource URL must match the licensekey in the JSON body provided, as shown in the example below.

Headers

ESL-API-Key: apikey

Example

Request

PUT https://api.easysoftwarelicensing.com/v1/sitelicenses/somekey055
HEADERS
    ESL-API-Key: apikey
    Content-Type: application/json
BODY
    {"deleted": null, "licenseeName": "", "renewURL": "", "domain": "oncemore.com", "expiration": null, "disposition": "", "licenseeEmail": "my@email.com", "ipAddress": "", "validationMethod": "DOMAIN_MATCH", "licenseKey": "somekey055"}

Response

200 OK

{
  "validationMethod": "DOMAIN_MATCH",
  "licenseeName": "",
  "disposition": "",
  "expiration": null,
  "deleted": null,
  "renewURL": "",
  "domain": "oncemore.com",
  "ipAddress": "",
  "issueDate": "2013-04-03 21:21:19",
  "licenseKey": "somekey055",
  "licenseeEmail": "my@email.com"
}
Secure WordPress plugin (HTTPS/SSL)