POST Account/User

Request Information

URI Parameters

None.

Body Parameters

AppUser
NameDescriptionTypeAdditional information
applicationUser

ApplicationUser

None.

companyName

string

None.

IsNew

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "IsNew": true,
  "applicationUser": {
    "Forename": "sample string 1",
    "Surname": "sample string 2",
    "ChangePasswordNextLogin": true,
    "CompanyGuid": "sample string 4",
    "Email": "sample string 5",
    "EmailConfirmed": true,
    "PasswordHash": "sample string 7",
    "SecurityStamp": "sample string 8",
    "PhoneNumber": "sample string 9",
    "PhoneNumberConfirmed": true,
    "TwoFactorEnabled": true,
    "LockoutEndDateUtc": "2026-04-05T12:51:00.468375+01:00",
    "LockoutEnabled": true,
    "AccessFailedCount": 13,
    "Roles": [],
    "Claims": [],
    "Logins": [],
    "Id": "sample string 14",
    "UserName": "sample string 15"
  },
  "companyName": "sample string 1"
}

application/xml, text/xml

Sample:
<AppUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MMSharedObjects.Models">
  <IsNew>true</IsNew>
  <applicationUser>
    <AccessFailedCount xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">13</AccessFailedCount>
    <Email xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 5</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 14</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-05T12:51:00.468375+01:00</LockoutEndDateUtc>
    <PasswordHash xmlns="http://schemas.datacontract.org/2004/07/Microsoft.AspNet.Identity.EntityFramework">sample string 7</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 8</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 15</UserName>
    <ChangePasswordNextLogin>true</ChangePasswordNextLogin>
    <CompanyGuid>sample string 4</CompanyGuid>
    <Forename>sample string 1</Forename>
    <Surname>sample string 2</Surname>
  </applicationUser>
  <companyName>sample string 1</companyName>
</AppUser>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.