User edit

Edit the user

POST /api/users/edit

Parameters can be passed only those that need to be changed. For example, if the Phone parameter is not passed, then it will not be changed.

Query Parameters

Name
Type
Description

email*

string

Identifier of the user to change (see. User get) or pass id field

PasswordHash

string

New password for the user, calculated from the function

MD5(EMAIL + PASS)

SendEmails

bool

Send a letter to the client about the need to confirm the account / enter a password

IsActive

bool

Is the profile active (True/False)

IsConfirmed

bool

Is Email confirmed (True/False)

Name

string

Name

Phone

string

Phone

CounterPartyId

int

Counterparty ID to which the user will belong

AllowedIps

string

Allowed IPs for B2B payment (comma separated)

B2BRailway

bool

Enable B2B Railway for user (True/False)

B2BAir

bool

Enable B2B Air for user (True/False)

B2BBuses

bool

Enable B2B Buses for user (True/False)

B2BHotels

bool

Enable B2B Hotels for user (True/False)

B2BInsurances

bool

Enable B2B Insurance for the user (True/False)

CustomLogo

string

Url of custom user logo

SETTING_

String

Additionally, settings for the user can be transferred. Settings have prefix SETTING_ , for example SETTING_AVIA_BTB_VIEW_ORDERS

id

int

Identifier of the user to change (see. User get) or pass email field

ChangeEmail

string

New email for the user

A successful response will contain the object of added user (see Get user request)

{
  "Data": {
    "email": "[email protected]",
    "guid": "843dac07-e03d-4b81-8c49-9e4bb9888e4c",
    "id": 1204,
    "name": "Dima",
    "phone": "+380444444444"
  },
  "Error": null,
  "Status": "OK",
  "StatusCode": 200
}

Last updated