POST api/PortalUser/CreateUser

CreateUser

Request Information

URI Parameters

None.

Body Parameters

PortalUser
NameDescriptionTypeAdditional information
UserName

string

None.

FirstName

string

None.

LastName

string

None.

PhoneNumber

string

None.

Email

string

None.

RoleId

integer

None.

Title

string

None.

IsAdministrator

boolean

None.

Sites

Collection of string

None.

RoleName

string

None.

PackageName

string

None.

UserId

integer

None.

Picture

string

None.

AdminEmail

string

None.

LanguageId

integer

None.

PackageId

integer

None.

IsPending

boolean

None.

ProfileRegistered

boolean

None.

EncryptedPassword

string

None.

LastLogin

date

None.

Region

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "PhoneNumber": "sample string 4",
  "Email": "sample string 5",
  "RoleId": 1,
  "Title": "sample string 6",
  "IsAdministrator": true,
  "Sites": [
    "sample string 1",
    "sample string 2"
  ],
  "RoleName": "sample string 8",
  "PackageName": "sample string 9",
  "UserId": 10,
  "Picture": "sample string 11",
  "AdminEmail": "sample string 12",
  "LanguageId": 13,
  "PackageId": 14,
  "IsPending": true,
  "ProfileRegistered": true,
  "EncryptedPassword": "sample string 17",
  "LastLogin": "2018-10-15T21:02:58.46135+00:00",
  "Region": "sample string 18"
}

application/xml, text/xml

Sample:
<PortalUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sysmex.IT.NsGlobal.Models.CRM">
  <AdminEmail>sample string 12</AdminEmail>
  <Email>sample string 5</Email>
  <EncryptedPassword>sample string 17</EncryptedPassword>
  <FirstName>sample string 2</FirstName>
  <IsAdministrator>true</IsAdministrator>
  <IsPending>true</IsPending>
  <LanguageId>13</LanguageId>
  <LastLogin>2018-10-15T21:02:58.46135+00:00</LastLogin>
  <LastName>sample string 3</LastName>
  <PackageId>14</PackageId>
  <PackageName>sample string 9</PackageName>
  <PhoneNumber>sample string 4</PhoneNumber>
  <Picture>sample string 11</Picture>
  <ProfileRegistered>true</ProfileRegistered>
  <Region>sample string 18</Region>
  <RoleId>1</RoleId>
  <RoleName>sample string 8</RoleName>
  <Sites xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Sites>
  <Title>sample string 6</Title>
  <UserId>10</UserId>
  <UserName>sample string 1</UserName>
</PortalUser>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.