Update a license

Estimated reading: 1 minute 1199 views

DESCRIPTION

Performs an update of the license key. The request will not update key values that aren’t present in the request body, however if they are present their value will be updated, even if it’s a null value. The request will return the updated license key data object.

REQUEST URL

PUT

/wp-json/lmfwc/v2/licenses/{license_key}

REQUEST HEADERS

Content-Type: application/json

REQUEST BODY:

{
  "order_id": null,
  "product_id": 30,
  "license_key": "UPDATE_LICENSE",
  "expires_at": "2022-08-02",
  "times_activated_max": 8,
  "status": "ACTIVE",
  "user_id": "2"
}

RESPONSE EXAMPLE:

“success”: true,

“data”: {

“id”: 31,

“orderId”: null,

“productId”: 30,

“userId”: 2,

“licenseKey”: “UPDATE_LICENSE”,

“expiresAt”: “2022-08-02 00:00:00”,

“validFor”: null,

“source”: 3,

“status”: 3,

“timesActivated”: null,

“timesActivatedMax”: 8,

“createdAt”: “2022-07-29 11:20:24”,

“createdBy”: 1,

“updatedAt”: “2022-07-29 11:24:52”,

“updatedBy”: 1

}

}
Share this Doc

Update a license

Or copy link

CONTENTS
Scroll to Top