POST api/User/CreateUser

Request Information

URI Parameters

None.

Body Parameters

UserModel
NameDescriptionTypeAdditional information
UserID

integer

None.

DefaultRoleId

integer

None.

EmailAddress

string

None.

Password

string

None.

IsApproved

boolean

None.

IsLockedOut

boolean

None.

IsEnabled

boolean

None.

FirstName

string

None.

LastName

string

None.

IsSignupUser

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "DefaultRoleId": 2,
  "EmailAddress": "sample string 3",
  "Password": "sample string 4",
  "IsApproved": true,
  "IsLockedOut": true,
  "IsEnabled": true,
  "FirstName": "sample string 8",
  "LastName": "sample string 9",
  "IsSignupUser": true
}

application/xml, text/xml

Sample:
<UserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSI.Cx360.WebAPI.Models">
  <DefaultRoleId>2</DefaultRoleId>
  <EmailAddress>sample string 3</EmailAddress>
  <FirstName>sample string 8</FirstName>
  <IsApproved>true</IsApproved>
  <IsEnabled>true</IsEnabled>
  <IsLockedOut>true</IsLockedOut>
  <IsSignupUser>true</IsSignupUser>
  <LastName>sample string 9</LastName>
  <Password>sample string 4</Password>
  <UserID>1</UserID>
</UserModel>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />