Skip to content

Update License

Updating a License

You can update a license by making a request to the following API endpoint:

PUT https://api.ricardoneud.com/v3/reseller/{license_key}/update

Request Headers

All headers below are optional, but at least one must be provided:

HeaderTypeRequiredDescription
AuthorizationstringBearer token with a valid reseller API key
X-Registered-TostringThe updated name of the user the license is registered to
X-Domain-Or-IPstringThe updated domain or IP address associated with the license
X-StatusstringThe updated status of the license (valid, invalid, etc.)
X-Product-IdstringThe updated product ID. If sent with an empty value, the product will be unlinked.
X-Project-IdstringThe updated project ID associated with the license

❗ You must provide at least one of the following headers: X-Registered-To, X-Domain-Or-IP, X-Status, X-Product-Id, or X-Project-Id.

Special Behavior

  • If X-Product-Id is included but empty, the license will be disassociated from the product (product_id will be set to NULL).

Example Request

PUT https://api.ricardoneud.com/v3/reseller/ABC123XYZ/update
Authorization: Bearer your-reseller-token
X-Registered-To: John Doe
X-Product-Id:

This will update the license owner to “John Doe” and remove the associated product.

Example Response

{
"message": "License updated successfully"
}

Error Responses

  • 401 Unauthorized: The reseller token is invalid or does not match the license.
  • 404 Not Found: The license key does not exist.
  • 400 Bad Request: No update fields were provided in the headers.
  • 500 Internal Server Error: A database error occurred during the update.

Notes

  • The reseller token must belong to the same reseller_id as the license in order to perform an update.
  • All update fields must be passed as HTTP headers.
  • To remove a product association, send X-Product-Id with an empty value.