Edit Reseller

This method will edit an existing reseller. This method will only change the properties that you specify.

This method is accessed by https://api.cryptolens.io/api/reseller/EditReseller

Parameters

Parameter Description Remarks
ResellerId Id of the reseller. An integer, required.
Name Name of the reseller. A string of max 100 characters.
Url Url to reseller's website. A string of max 500 characters.
Email Email of the reseller. A string of max 100 characters.
Phone Phone number to the reseller. A string of max 100 characters.
Description Description related to the reseller. A string of max 500 characters.
Metadata A JSON dictionary containing extra fields to store with the reseller. Note, to remove a certain field, you can set it to null or empty string. A JSON string.
v Method version. optional. by default, it's 1.

Results

Parameter Description Remarks
Result This is either 0(=success) or 1(=error). always returned
Message The message that provides additional information about the result. always returned.

Example results

{"result":0,"message":null}

Errors

Error
Access denied.
Reseller could not be found.
The name cannot be longer than 100 characters.
The url cannot be longer than 500 characters.
The email cannot be longer than 100 characters.
The phone cannot be longer than 100 characters.
The description cannot be longer than 500 characters.
;