PUT api/Users/PutUserInfor?Lang={Lang}

Sửa thông tin người dùng. Gọi GetUserInforEdit để lấy thông tin về sửa.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Lang

Lang ngôn ngữ hiện hành (en/vi). Mặc định là vi.

string

Default value is vi

Body Parameters

Cấu trúc đối tượng thông tin người dùng được sửa.

TUserInforEdit
NameDescriptionTypeAdditional information
ID

ID

integer

None.

FullName

Họ và tên

string

None.

Gender

Giới tính

integer

None.

Birthday

Ngày sinh

date

None.

PhoneNumber

Điện thoại

string

None.

Role

Vị trí/vai trò

string

None.

Address

Địa chỉ

string

None.

Note

Ghi chú

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "FullName": "sample string 2",
  "Gender": 3,
  "Birthday": "2026-01-09T22:12:56.8816519+07:00",
  "PhoneNumber": "sample string 4",
  "Role": "sample string 5",
  "Address": "sample string 6",
  "Note": "sample string 7"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TUserInforEdit'.

Response Information

Resource Description

Trả về cấu trúc với: success=(true/false>); message=văn bản thông báo; enMessage=văn bản thông báo tiếng Anh; updatedData= cấu trúc dữ liệu chứa thông tin đã cập nhật.

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.