Skip to content

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:

HeaderTypeRequiredDescription
AuthorizationstringBearer token with a valid reseller API key
X-Registered-TostringThe new name of the registered user for the license
X-Domain-Or-IPstringThe new domain or IP address associated with the license
X-StatusstringThe new status of the license (e.g., valid, invalid)

Example Request:

PUT https://api.ricardoneud.com/v2/reseller/{license_key}/update
Authorization: Bearer your-reseller-token
X-Registered-To: John Doe
X-Domain-Or-IP: example.com
X-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, or X-Status).
  • The reseller token must match the license’s reseller_id to allow updates.