POST api/Admin/InsertUser

Creates a new user.

Request Information

URI Parameters

None.

Body Parameters

UsersModule
NameDescriptionTypeAdditional information
PersonID

integer

None.

Firstname

string

None.

Lastname

string

None.

Middlename

string

None.

PersonTypePL

integer

None.

PersonType

string

None.

Gender

integer

None.

DOB

date

None.

MaritalStatusPL

integer

None.

MaritalStatus

string

None.

IsFirstTimeLogin

boolean

None.

StreetAddress

string

None.

Suburb

string

None.

PostalCode

string

None.

City

string

None.

StateID

integer

None.

State

string

None.

CountryID

integer

None.

Country

string

None.

Email

string

None.

PhoneNumbers

string

None.

PhotoData

Collection of byte

None.

PhotoData1

string

None.

PhotoSize

string

None.

PhotoName

string

None.

PhotoType

string

None.

PhotoPath

string

None.

RoleID

integer

None.

Password

string

None.

BranchID

integer

None.

CreatedBy

integer

None.

CreatedDate

date

None.

ModifiedBy

integer

None.

ModifiedDate

date

None.

IsSalesPerson

boolean

None.

IsTreatmentPerson

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PersonID": 1,
  "Firstname": "sample string 2",
  "Lastname": "sample string 3",
  "Middlename": "sample string 4",
  "PersonTypePL": 5,
  "PersonType": "sample string 6",
  "Gender": 7,
  "DOB": "2021-02-24T12:48:25.94356+11:00",
  "MaritalStatusPL": 9,
  "MaritalStatus": "sample string 10",
  "IsFirstTimeLogin": true,
  "StreetAddress": "sample string 12",
  "Suburb": "sample string 13",
  "PostalCode": "sample string 14",
  "City": "sample string 15",
  "StateID": 16,
  "State": "sample string 17",
  "CountryID": 18,
  "Country": "sample string 19",
  "Email": "sample string 20",
  "PhoneNumbers": "sample string 21",
  "PhotoData": "QEA=",
  "PhotoData1": "sample string 22",
  "PhotoSize": "sample string 23",
  "PhotoName": "sample string 24",
  "PhotoType": "sample string 25",
  "PhotoPath": "sample string 26",
  "RoleID": 27,
  "Password": "sample string 28",
  "BranchID": 29,
  "CreatedBy": 30,
  "CreatedDate": "2021-02-24T12:48:25.94356+11:00",
  "ModifiedBy": 32,
  "ModifiedDate": "2021-02-24T12:48:25.94356+11:00",
  "IsSalesPerson": true,
  "IsTreatmentPerson": true
}

application/xml, text/xml

Sample:
<UsersModule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TARWebAPI.Models">
  <BranchID>29</BranchID>
  <City>sample string 15</City>
  <Country>sample string 19</Country>
  <CountryID>18</CountryID>
  <CreatedBy>30</CreatedBy>
  <CreatedDate>2021-02-24T12:48:25.94356+11:00</CreatedDate>
  <DOB>2021-02-24T12:48:25.94356+11:00</DOB>
  <Email>sample string 20</Email>
  <Firstname>sample string 2</Firstname>
  <Gender>7</Gender>
  <IsFirstTimeLogin>true</IsFirstTimeLogin>
  <IsSalesPerson>true</IsSalesPerson>
  <IsTreatmentPerson>true</IsTreatmentPerson>
  <Lastname>sample string 3</Lastname>
  <MaritalStatus>sample string 10</MaritalStatus>
  <MaritalStatusPL>9</MaritalStatusPL>
  <Middlename>sample string 4</Middlename>
  <ModifiedBy>32</ModifiedBy>
  <ModifiedDate>2021-02-24T12:48:25.94356+11:00</ModifiedDate>
  <Password>sample string 28</Password>
  <PersonID>1</PersonID>
  <PersonType>sample string 6</PersonType>
  <PersonTypePL>5</PersonTypePL>
  <PhoneNumbers>sample string 21</PhoneNumbers>
  <PhotoData>QEA=</PhotoData>
  <PhotoData1>sample string 22</PhotoData1>
  <PhotoName>sample string 24</PhotoName>
  <PhotoPath>sample string 26</PhotoPath>
  <PhotoSize>sample string 23</PhotoSize>
  <PhotoType>sample string 25</PhotoType>
  <PostalCode>sample string 14</PostalCode>
  <RoleID>27</RoleID>
  <State>sample string 17</State>
  <StateID>16</StateID>
  <StreetAddress>sample string 12</StreetAddress>
  <Suburb>sample string 13</Suburb>
</UsersModule>

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.