Edit User

The request is intended to edit information of the user account .

Request Example

&svc=update_user&params={
    "id":integer,
    "login":string,
    "email":string,
    "phone":string,
    "password":string,
    "photo":base64,
    "is_block":ushort,
    "is_admin":ushort,
    "address_base":string,
    "time_zone":short,
    "language":string,
    "creator":integer,
    "location":string,
    "legal_name":string,
    "lat_lon":double,double,
    "cost_mode": string,
    "cost_day": integer,
    "currency": string,
    "cost_unit": double
}

Parameters

Parameter Description
password User Password.
is_admin Sets administrator rights:
1 // User will have administrator rights.
0 // User will not have administrator rights.
address_base IMPORTANT! Gelios Hosting uses its own address base and switching is impossible. The setting is relevant for Gelios Server.
Sets the used address base:
"Google" // Google Address Base
"Yandex" // Yandex Address Base
"Wialon" // Wialon Address Base
email User Account Email
phone User Account Phone Number.
language Interface language of the user account
creator Creator of the User Account.
location User Account Location.
legal_name Name of the legal entity of the user account.
lat_lon The coordinates of the initial centering of the card for the user account.
cost_mode Payment mode for the user account:
"units" // Monthly fee for all units
"days" // Cost by days
"units_days" //Daily payment for active units
"units_days_all" //Daily payment for all units
cost_unit Unit cost for user account. For a monthly fee for units is indicated the cost per month, with daily payment - the cost per day.
currency Payment currency for user account.
cost_day Limit for payment type “Cost by days”.

Additional Information

To add “+” in phone number - %2B

Server Response

Successful changes
{
    "result":true
}