CMD_API_MODIFY_USER change only bandwidth

romix

New member
Joined
Apr 6, 2015
Messages
4
Hi

how I can change only user bandwidth by CMD_API_MODIFY_USER?
When I do:

'user' => "$server->virt_user",
'action' => 'customize',
'bandwith' => "$toAdd"

all data are changing.
 

romix

New member
Joined
Apr 6, 2015
Messages
4
When I do post:

'user' => "user",
'action' => 'customize',
'bandwidth' => "100000"

all properties set to unlimited but I need change only bandwidth.
Other options (disk space, domains limit, subdomains limit etc.) are to be unchanged.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,243
Location
GMT +7.00
You should pass the entire list of package values even if you don't want to change them.
 

romix

New member
Joined
Apr 6, 2015
Messages
4
Really?
It is very complicated.

Do you have a ready-made solution?
 
Top