PUT api/UserAccountAPI/EditUser?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

HotelUser
NameDescriptionTypeAdditional information
FullName

string

None.

UserName

string

None.

Password

string

None.

FirstName

string

None.

LastName

string

None.

RoleName

string

None.

Level

integer

None.

Email

string

None.

PhoneNumber

string

None.

IsActive

boolean

None.

IsVendor

boolean

None.

IsCustomer

boolean

None.

ResetPassword

boolean

None.

JoinDate

date

None.

Token

string

None.

EmailConfirmed

boolean

None.

PasswordHash

string

None.

SecurityStamp

string

None.

PhoneNumberConfirmed

boolean

None.

TwoFactorEnabled

boolean

None.

LockoutEndDateUtc

date

None.

LockoutEnabled

boolean

None.

AccessFailedCount

integer

None.

Roles

Collection of IdentityUserRole

None.

Claims

Collection of IdentityUserClaim

None.

Logins

Collection of IdentityUserLogin

None.

Id

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FullName": "sample string 1",
  "UserName": "sample string 2",
  "Password": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "RoleName": "sample string 6",
  "Level": 7,
  "Email": "sample string 8",
  "PhoneNumber": "sample string 9",
  "IsActive": true,
  "IsVendor": true,
  "IsCustomer": true,
  "ResetPassword": true,
  "JoinDate": "2026-04-02T12:52:06.0146258+05:45",
  "Token": "sample string 15",
  "EmailConfirmed": true,
  "PasswordHash": "sample string 17",
  "SecurityStamp": "sample string 18",
  "PhoneNumberConfirmed": true,
  "TwoFactorEnabled": true,
  "LockoutEndDateUtc": "2026-04-02T12:52:06.0156256+05:45",
  "LockoutEnabled": true,
  "AccessFailedCount": 22,
  "Roles": [],
  "Claims": [],
  "Logins": [],
  "Id": "sample string 23"
}

application/xml, text/xml

Sample:
<HotelUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DCubeHotelDomain.Models">
  <AccessFailedCount xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">22</AccessFailedCount>
  <Email xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 8</Email>
  <EmailConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</EmailConfirmed>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 23</Id>
  <LockoutEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</LockoutEnabled>
  <LockoutEndDateUtc xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">2026-04-02T12:52:06.0156256+05:45</LockoutEndDateUtc>
  <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 17</PasswordHash>
  <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 9</PhoneNumber>
  <PhoneNumberConfirmed xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</PhoneNumberConfirmed>
  <SecurityStamp xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 18</SecurityStamp>
  <TwoFactorEnabled xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">true</TwoFactorEnabled>
  <UserName xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 2</UserName>
  <FirstName>sample string 4</FirstName>
  <FullName>sample string 1</FullName>
  <IsActive>true</IsActive>
  <IsCustomer>true</IsCustomer>
  <IsVendor>true</IsVendor>
  <JoinDate>2026-04-02T12:52:06.0146258+05:45</JoinDate>
  <LastName>sample string 5</LastName>
  <Level>7</Level>
  <Password>sample string 3</Password>
  <ResetPassword>true</ResetPassword>
  <RoleName>sample string 6</RoleName>
  <Token>sample string 15</Token>
</HotelUser>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.