Update a license

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": null, "license_key": "THE-PRETENDER", "valid_for": null, "times_activated_max": 999, "status": "ACTIVE" }

Response example

{ "success": true, "data": { "id": "2", "orderId": null, "productId": null, "licenseKey": "THE-PRETENDER", "expiresAt": null, "validFor": null, "source": "3", "status": "3", "timesActivated": null, "timesActivatedMax": "999", "createdAt": "2021-06-30 18:12:38", "createdBy": "1", "updatedAt": "2021-06-30 18:15:14", "updatedBy": "1" } }

Stuck or need help? Let us know!Updated on: 12.06.2021