Update License
This documentation helps you update a license by providing the necessary details via headers.
Updating a License
You can update a license by making a request to the following API endpoint:
PUT https://api.ricardoneud.com/v2/reseller/{license_key}/update
Request Headers:
Header | Type | Required | Description |
---|---|---|---|
Authorization | string | ✅ | Bearer token with a valid reseller API key |
X-Registered-To | string | ❌ | The new name of the registered user for the license |
X-Domain-Or-IP | string | ❌ | The new domain or IP address associated with the license |
X-Status | string | ❌ | The new status of the license (e.g., valid , invalid ) |
Example Request:
PUT https://api.ricardoneud.com/v2/reseller/{license_key}/updateAuthorization: Bearer your-reseller-tokenX-Registered-To: John DoeX-Domain-Or-IP: example.comX-Status: valid
Example Response:
{ "message": "License updated successfully"}
Error Responses:
401 Unauthorized
: If the reseller token is invalid or does not match the license.404 Not Found
: If the license does not exist.400 Bad Request
: If no valid update fields are provided.500 Internal Server Error
: If a database error occurs.
Notes:
- You must provide at least one update field (
X-Registered-To
,X-Domain-Or-IP
, orX-Status
). - The reseller token must match the license’s reseller_id to allow updates.