Create subuser
POST /api/reseller/v1/subusers: create a subuser and allocate bandwidth
POST
https://www.eclipseproxy.com/api/reseller/v1/subusersBearer authCreate a new subuser and allocate bandwidth from your pool. A secure password is generated and returned once in the response.
Example request
Authentication
Requires a reseller API key. Pass it as Authorization: Bearer YOUR_API_KEY or X-API-Key: YOUR_API_KEY. See Reseller overview.
Body parameters
usernamebodystringrequiredDesired username. Automatically prefixed with your store code (e.g. user1 becomes MYSTORE_user1).
emailbodystringrequiredEmail for the subuser.
bandwidthbodynumberrequiredBandwidth to allocate, in MB. Must be a positive number and cannot exceed your available balance.
Response
Returns the created subuser, including the generated password. Store it now: it isn't shown again.
Example request body
Example response
Errors
| Status | Code | Reason |
|---|---|---|
| 400 | INSUFFICIENT_BALANCE | Not enough bandwidth available |
| 409 | USERNAME_TAKEN | A subuser with that username already exists |
| 422 | MISSING_FIELDS | A required field is missing |
| 422 | INVALID_BANDWIDTH | Bandwidth must be a positive number |

