POST User/SaveUser

Request Information

URI Parameters

None.

Body Parameters

ApplicationUser
NameDescriptionTypeAdditional information
LoginType

integer

None.

LoginKey

integer

None.

DefaultPortalKey

integer

None.

AssignedRoleNames

Collection of string

None.

ContactName

string

None.

ForcePasswordReset

boolean

None.

LastLoginDate

date

None.

RegistrationDate

date

None.

Email

string

None.

EmailConfirmed

boolean

None.

PasswordHash

string

None.

SecurityStamp

string

None.

PhoneNumber

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.

UserName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "LoginType": 1,
  "LoginKey": 2,
  "DefaultPortalKey": 3,
  "AssignedRoleNames": [
    "sample string 1",
    "sample string 2"
  ],
  "ContactName": "sample string 4",
  "ForcePasswordReset": true,
  "LastLoginDate": "2025-01-09T13:19:38.3058102-06:00",
  "RegistrationDate": "2025-01-09T13:19:38.3058102-06:00",
  "Email": "sample string 6",
  "EmailConfirmed": true,
  "PasswordHash": "sample string 8",
  "SecurityStamp": "sample string 9",
  "PhoneNumber": "sample string 10",
  "PhoneNumberConfirmed": true,
  "TwoFactorEnabled": true,
  "LockoutEndDateUtc": "2025-01-09T13:19:38.3058102-06:00",
  "LockoutEnabled": true,
  "AccessFailedCount": 14,
  "Roles": [],
  "Claims": [],
  "Logins": [],
  "Id": "sample string 15",
  "UserName": "sample string 16"
}

application/xml, text/xml

Sample:
<ApplicationUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VHCSAPIModels.Models">
  <AccessFailedCount xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">14</AccessFailedCount>
  <Email xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 6</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 15</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">2025-01-09T13:19:38.3058102-06:00</LockoutEndDateUtc>
  <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 8</PasswordHash>
  <PhoneNumber xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 10</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 9</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 16</UserName>
  <AssignedRoleNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </AssignedRoleNames>
  <ContactName>sample string 4</ContactName>
  <DefaultPortalKey>3</DefaultPortalKey>
  <ForcePasswordReset>true</ForcePasswordReset>
  <LastLoginDate>2025-01-09T13:19:38.3058102-06:00</LastLoginDate>
  <LoginKey>2</LoginKey>
  <LoginType>1</LoginType>
  <RegistrationDate>2025-01-09T13:19:38.3058102-06:00</RegistrationDate>
</ApplicationUser>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.