Skip to main content
PUT
/
v3
/
reseller
/
{license_key}
/
update
Update License
curl --request PUT \
  --url https://api.ricardoneud.com/v3/reseller/{license_key}/update \
  --header 'Authorization: Bearer <token>'
{
  "message": "License updated successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Registered-To
string

The updated name of the user the license is registered

X-Domain-Or-IP
string

The updated domain or IP address associated with the

X-Status
string

The updated status of the license (valid, invalid,

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

Path Parameters

license_key
string
required

Response

200 - application/json

❗ 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).

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.
message
string
required
I