POST a new sitelicense
Create a sitelicense associated with the APIKEY provided. When creating a sitelicense, you may provide a JSON document representing a subset of all fields for your new 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 |
Headers
ESL-API-Key: apikey |
Body
The body expects a full or partial representation of a sitelicense.
{ "validationMethod": "LICENSE_EXISTS_NOT_EXPIRED", "licenseeName": "", "disposition": "", "expiration": null, "deleted": null, "renewURL": "", "domain": "domainname.com", "ipAddress": "", "issueDate": "2013-04-03 21:21:19", "licenseKey": "keyvalue", "licenseeEmail": "" } |
Example
Request
POST https://api.easysoftwarelicensing.com/v1/sitelicenses HEADERS ESL-API-Key: apikey Content-Type: application/json BODY {"domain": "test.com", "licenseKey": "somekey055", "validationMethod": "LICENSE_EXISTS_NOT_EXPIRED"} |
Response
200 OK
{ "validationMethod": "LICENSE_EXISTS_NOT_EXPIRED", "licenseeName": "", "disposition": "", "expiration": null, "deleted": null, "renewURL": "", "domain": "test.com", "ipAddress": "", "issueDate": "2013-04-03 21:21:19", "licenseKey": "somekey055", "licenseeEmail": "" } |
Recent Comments