- API Reference
- Box API
- Selling platform
Let a customer replace the username and password of the proxy they rent
Replaces the proxy's user:pass with the given pair and restarts the port. Both values must be 3-15 letters or digits. When user or pass is missing the box answers status:false with an empty message.
GET
/selling/change_userQuery parameters
tokenstringrequiredsecret
API token of one sold proxy (api_token in /selling/shared_proxies). Give it only to the customer who rents that proxy; anyone with the link can use it.
userstringrequired
New username, 3-15 letters or digits.
Example
newuserpassstringrequiredsecret
New password, 3-15 letters or digits.
Authentication
Authenticated only by the sold proxy's API token; the dashboard login and "Basic auth for all API" do not apply.
Responses
Result or refusal.
Unexpected error.
statusbooleanoptional
messagestringoptional
datastringoptional
Errors returned in msg
| msg | Meaning | What to do |
|---|---|---|
This function is available on Selling Platform license only. Please contact Administrator! | The license does not include the Selling Platform. | Upgrade the license. |
API Token invalid | Token unknown or reset (in message). | Ask the seller for the current link; tokens change when reset. |
Username or password only allowed 3 to 15 characters and allow non-special characters: a-z, A-Z, 0-9 | user or pass has the wrong format. | Use 3-15 letters or digits. |
| token | Send all three parameters. |
An error occurred while processing the request | Unexpected error (HTTP 500). | Retry; contact the seller. |