POST api/ManageUser/RegisterUserByAdmin

Request Information

URI Parameters

None.

Body Parameters

RegisterUserDTO
NameDescriptionTypeAdditional information
displayName

string

None.

email

string

None.

password

string

None.

username

string

None.

phoneNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "displayName": "sample string 1",
  "email": "sample string 2",
  "password": "sample string 3",
  "username": "sample string 4",
  "phoneNumber": "sample string 5"
}

application/xml, text/xml

Sample:
<RegisterUserDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.DTOs">
  <displayName>sample string 1</displayName>
  <email>sample string 2</email>
  <password>sample string 3</password>
  <phoneNumber>sample string 5</phoneNumber>
  <username>sample string 4</username>
</RegisterUserDTO>

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

Response Information

Resource Description

IdentityResultDTO
NameDescriptionTypeAdditional information
success

boolean

None.

errorMessage

string

None.

error

Collection of string

None.

result

string

None.

resultObject

Collection of Object

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "errorMessage": "sample string 2",
  "error": [
    "sample string 1",
    "sample string 2"
  ],
  "result": "sample string 3",
  "resultObject": [
    {},
    {}
  ]
}

application/xml, text/xml

Sample:
<IdentityResultDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.DTOs">
  <error xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </error>
  <errorMessage>sample string 2</errorMessage>
  <result>sample string 3</result>
  <resultObject xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:anyType />
    <d2p1:anyType />
  </resultObject>
  <success>true</success>
</IdentityResultDTO>