POST api/Account/Update

Request Information

URI Parameters

None.

Body Parameters

UpdateAccountRequest
NameDescriptionTypeAdditional information
AccountId

globally unique identifier

None.

FullName

string

None.

Email

string

None.

PhoneNumber

string

None.

Gender

GenderEnum

None.

BirthDate

date

None.

Address

string

None.

AvatarId

globally unique identifier

None.

Username

string

None.

Note

string

None.

IsAcvite

boolean

None.

RolesEnum

Collection of RoleEnum

None.

SoDienThoaiZalo

string

None.

LinkFacebook

string

None.

TimeIn

string

None.

TimeOut

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountId": "9b7eed35-803b-47e7-9e4a-a21d29c3a33d",
  "FullName": "sample string 1",
  "Email": "sample string 2",
  "PhoneNumber": "sample string 3",
  "Gender": 0,
  "BirthDate": "2025-10-26T13:04:16.6341544+07:00",
  "Address": "sample string 4",
  "AvatarId": "ef91fb2b-4f7a-4be6-83b9-708f2e7ff451",
  "Username": "sample string 5",
  "Note": "sample string 6",
  "IsAcvite": true,
  "RolesEnum": [
    0,
    0
  ],
  "SoDienThoaiZalo": "sample string 7",
  "LinkFacebook": "sample string 8",
  "TimeIn": "sample string 9",
  "TimeOut": "sample string 10"
}

application/xml, text/xml

Sample:
<UpdateAccountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Account">
  <AccountId>9b7eed35-803b-47e7-9e4a-a21d29c3a33d</AccountId>
  <Address>sample string 4</Address>
  <AvatarId>ef91fb2b-4f7a-4be6-83b9-708f2e7ff451</AvatarId>
  <BirthDate>2025-10-26T13:04:16.6341544+07:00</BirthDate>
  <Email>sample string 2</Email>
  <FullName>sample string 1</FullName>
  <Gender>Nam</Gender>
  <IsAcvite>true</IsAcvite>
  <LinkFacebook>sample string 8</LinkFacebook>
  <Note>sample string 6</Note>
  <PhoneNumber>sample string 3</PhoneNumber>
  <RolesEnum xmlns:d2p1="http://schemas.datacontract.org/2004/07/Common.Enums">
    <d2p1:RoleEnum>Admin</d2p1:RoleEnum>
    <d2p1:RoleEnum>Admin</d2p1:RoleEnum>
  </RolesEnum>
  <SoDienThoaiZalo>sample string 7</SoDienThoaiZalo>
  <TimeIn>sample string 9</TimeIn>
  <TimeOut>sample string 10</TimeOut>
  <Username>sample string 5</Username>
</UpdateAccountRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AccountDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Username

string

None.

IsActive

boolean

None.

Email

string

None.

FullName

string

None.

HoTen

string

None.

PhoneNumber

string

None.

Gender

integer

None.

BirthDate

date

None.

Address

string

None.

AvatarId

globally unique identifier

None.

Note

string

None.

WrongTimes

integer

None.

Type

integer

None.

ParentId

globally unique identifier

None.

LastLoginTime

date

None.

TokenTimeDisabled

date

None.

IsDeleted

boolean

None.

CreatedTime

date

None.

UpdatedTime

date

None.

DeletedTime

date

None.

CreatedId

globally unique identifier

None.

UpdatedId

globally unique identifier

None.

DeletedId

globally unique identifier

None.

Roles

Collection of RoleEnum

None.

RolesName

string

None.

ListRoleName

Collection of string

None.

ResetCode

string

None.

ResetCodeTime

date

None.

ActiveCode

string

None.

ActiveCodeTime

date

None.

OtpCode

string

None.

OtpCodeTime

date

None.

LaQuanTriVien

boolean

None.

LaQuanLy

boolean

None.

AccountParentId

globally unique identifier

None.

LinkFacebook

string

None.

SoDienThoaiZalo

string

None.

KichHoatTaiKhoan

boolean

None.

TimeIn

string

None.

TimeOut

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "94339eca-e11b-43a4-9d54-8d1aaee20025",
  "Username": "sample string 1",
  "IsActive": true,
  "Email": "sample string 2",
  "FullName": "sample string 3",
  "HoTen": "sample string 3",
  "PhoneNumber": "sample string 4",
  "Gender": 1,
  "BirthDate": "2025-10-26T13:04:16.658469+07:00",
  "Address": "sample string 5",
  "AvatarId": "c5c56a8d-c891-45bd-912c-b7fe3184d5d8",
  "Note": "sample string 6",
  "WrongTimes": 1,
  "Type": 1,
  "ParentId": "e67cb00b-94ed-4e79-a853-5052aaca6bdb",
  "LastLoginTime": "2025-10-26T13:04:16.6594582+07:00",
  "TokenTimeDisabled": "2025-10-26T13:04:16.6594582+07:00",
  "IsDeleted": true,
  "CreatedTime": "2025-10-26T13:04:16.6604489+07:00",
  "UpdatedTime": "2025-10-26T13:04:16.6604489+07:00",
  "DeletedTime": "2025-10-26T13:04:16.6604489+07:00",
  "CreatedId": "0ea26b31-ea2a-42b9-b258-4fdefed79c53",
  "UpdatedId": "f8ab2579-594b-4428-9388-3e10af3a6cec",
  "DeletedId": "3bf95b25-0ef7-4489-900e-a038c95e053c",
  "Roles": [
    0,
    0
  ],
  "RolesName": "Quản lý, Quản lý",
  "ListRoleName": [
    "Quản lý",
    "Quản lý"
  ],
  "ResetCode": "sample string 7",
  "ResetCodeTime": "2025-10-26T13:04:16.6614222+07:00",
  "ActiveCode": "sample string 8",
  "ActiveCodeTime": "2025-10-26T13:04:16.6614222+07:00",
  "OtpCode": "sample string 9",
  "OtpCodeTime": "2025-10-26T13:04:16.6614222+07:00",
  "LaQuanTriVien": true,
  "LaQuanLy": true,
  "AccountParentId": "79bfaf85-d8c6-4bda-85b7-9ba46bbf0d17",
  "LinkFacebook": "sample string 10",
  "SoDienThoaiZalo": "sample string 11",
  "KichHoatTaiKhoan": true,
  "TimeIn": "sample string 12",
  "TimeOut": "sample string 13"
}

application/xml, text/xml

Sample:
<AccountDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Dto.Account">
  <AccountParentId>79bfaf85-d8c6-4bda-85b7-9ba46bbf0d17</AccountParentId>
  <ActiveCode>sample string 8</ActiveCode>
  <ActiveCodeTime>2025-10-26T13:04:16.6614222+07:00</ActiveCodeTime>
  <Address>sample string 5</Address>
  <AvatarId>c5c56a8d-c891-45bd-912c-b7fe3184d5d8</AvatarId>
  <BirthDate>2025-10-26T13:04:16.658469+07:00</BirthDate>
  <CreatedId>0ea26b31-ea2a-42b9-b258-4fdefed79c53</CreatedId>
  <CreatedTime>2025-10-26T13:04:16.6604489+07:00</CreatedTime>
  <DeletedId>3bf95b25-0ef7-4489-900e-a038c95e053c</DeletedId>
  <DeletedTime>2025-10-26T13:04:16.6604489+07:00</DeletedTime>
  <Email>sample string 2</Email>
  <FullName>sample string 3</FullName>
  <Gender>1</Gender>
  <Id>94339eca-e11b-43a4-9d54-8d1aaee20025</Id>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <KichHoatTaiKhoan>true</KichHoatTaiKhoan>
  <LaQuanLy>true</LaQuanLy>
  <LaQuanTriVien>true</LaQuanTriVien>
  <LastLoginTime>2025-10-26T13:04:16.6594582+07:00</LastLoginTime>
  <LinkFacebook>sample string 10</LinkFacebook>
  <ListRoleName xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>Quản lý</d2p1:string>
    <d2p1:string>Quản lý</d2p1:string>
  </ListRoleName>
  <Note>sample string 6</Note>
  <OtpCode>sample string 9</OtpCode>
  <OtpCodeTime>2025-10-26T13:04:16.6614222+07:00</OtpCodeTime>
  <ParentId>e67cb00b-94ed-4e79-a853-5052aaca6bdb</ParentId>
  <PhoneNumber>sample string 4</PhoneNumber>
  <ResetCode>sample string 7</ResetCode>
  <ResetCodeTime>2025-10-26T13:04:16.6614222+07:00</ResetCodeTime>
  <Roles xmlns:d2p1="http://schemas.datacontract.org/2004/07/Common.Enums">
    <d2p1:RoleEnum>Admin</d2p1:RoleEnum>
    <d2p1:RoleEnum>Admin</d2p1:RoleEnum>
  </Roles>
  <SoDienThoaiZalo>sample string 11</SoDienThoaiZalo>
  <TimeIn>sample string 12</TimeIn>
  <TimeOut>sample string 13</TimeOut>
  <TokenTimeDisabled>2025-10-26T13:04:16.6594582+07:00</TokenTimeDisabled>
  <Type>1</Type>
  <UpdatedId>f8ab2579-594b-4428-9388-3e10af3a6cec</UpdatedId>
  <UpdatedTime>2025-10-26T13:04:16.6604489+07:00</UpdatedTime>
  <Username>sample string 1</Username>
  <WrongTimes>1</WrongTimes>
</AccountDto>