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:
Header | Type | Required | Description |
---|---|---|---|
Authorization | string | ✅ | Bearer token with a valid reseller API key |
X-Registered-To | string | ❌ | The updated name of the user the license is registered to |
X-Domain-Or-IP | string | ❌ | The updated domain or IP address associated with the license |
X-Status | string | ❌ | The updated status of the license (valid , invalid , etc.) |
X-Product-Id | string | ❌ | The updated product ID. If sent with an empty value, the product will be unlinked. |
X-Project-Id | string | ❌ | The 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
, orX-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 toNULL
).
Example Request
PUT https://api.ricardoneud.com/v3/reseller/ABC123XYZ/updateAuthorization: Bearer your-reseller-tokenX-Registered-To: John DoeX-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.