POST api/public-accounts/updateaccount

Request Information

URI Parameters

None.

Body Parameters

DTOPublicAccount
NameDescriptionTypeAdditional information
AccountID

integer

None.

Code

string

None.

UserFullName

string

None.

Username

string

None.

Password

string

None.

SecondaryPassQ

string

None.

SecondaryPassA

string

None.

EmailAddress

string

None.

AccountTypeID

PublicAccountType

None.

RegisteredDate

date

None.

FlagExpires

boolean

None.

DateExpiry

date

None.

FlagLocked

boolean

None.

TenantID

integer

None.

Photo

Collection of byte

None.

FlagDeleted

boolean

None.

MobileNo

string

None.

LastLogin

date

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountID": 1,
  "Code": "sample string 2",
  "UserFullName": "sample string 3",
  "Username": "sample string 4",
  "Password": "sample string 5",
  "SecondaryPassQ": "sample string 6",
  "SecondaryPassA": "sample string 7",
  "EmailAddress": "sample string 8",
  "AccountTypeID": 0,
  "RegisteredDate": "2025-10-26T11:12:28.5796913+08:00",
  "FlagExpires": true,
  "DateExpiry": "2025-10-26T11:12:28.5796913+08:00",
  "FlagLocked": true,
  "TenantID": 11,
  "Photo": "QEA=",
  "FlagDeleted": true,
  "MobileNo": "sample string 13",
  "LastLogin": "2025-10-26T11:12:28.5796913+08:00"
}

application/xml, text/xml

Sample:
<DTOPublicAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <AccountID>1</AccountID>
  <AccountTypeID>Public</AccountTypeID>
  <Code>sample string 2</Code>
  <DateExpiry>2025-10-26T11:12:28.5796913+08:00</DateExpiry>
  <EmailAddress>sample string 8</EmailAddress>
  <FlagDeleted>true</FlagDeleted>
  <FlagExpires>true</FlagExpires>
  <FlagLocked>true</FlagLocked>
  <LastLogin>2025-10-26T11:12:28.5796913+08:00</LastLogin>
  <MobileNo>sample string 13</MobileNo>
  <Password>sample string 5</Password>
  <Photo>QEA=</Photo>
  <RegisteredDate>2025-10-26T11:12:28.5796913+08:00</RegisteredDate>
  <SecondaryPassA>sample string 7</SecondaryPassA>
  <SecondaryPassQ>sample string 6</SecondaryPassQ>
  <TenantID>11</TenantID>
  <UserFullName>sample string 3</UserFullName>
  <Username>sample string 4</Username>
</DTOPublicAccount>

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 'DTOPublicAccount'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>