# Add IP addresses to reseller This function adds IP addresses to a reseller's account. To assign a main IP address to a reseller's account, call the WHM API 1 function. For more information, read our Manage Reseller's IP Delegation documentation. Endpoint: GET /setresellerips Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `user` (string, required) The reseller's username. Example: "username" - `delegate` (integer) Whether to allocate the reseller a dedicated IP address. * — Restrict the reseller's account to its dedicated IP address. * — Allow the user to dedicate any available IP address to an owned account. Enum: 1 - `ips` (string) The IP addresses to allocate to the reseller's account. * If you do use this parameter, the function clears the reseller's IP address list. * Use a comma-separated list to allocate multiple IP addresses. Example: "192.168.0.20" ## Response 200 fields (application/json): - `data` (object) - `data.all` (integer) Whether the function allocated all available IP addresses to the reseller. This return appears if you set the parameter to . is the only possible value. Enum: 1 - `data.ip` (array) An array of the reseller's allocated IP addresses. Example: ["192.168.0.20"] - `metadata` (object) - `metadata.command` (string) The method name called. Example: "setresellerips" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "OK" - `metadata.result` (integer) * — Success. * — Failed. Check the field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1