POST api/User/Add

Add a user.

Request Information

URI Parameters

None.

Body Parameters

user info

TLoginInfo
NameDescriptionTypeAdditional information
PersonID

integer

None.

LoginName

string

None.

FName

string

None.

LName

string

None.

IsActive

boolean

None.

IsAdministrator

boolean

None.

Address

string

None.

EmailAddress

string

None.

MobilePhone

string

None.

HomePhone

string

None.

Phone

string

None.

FaxNumber

string

None.

ExtUserCode

string

None.

FID

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PersonID": 1,
  "LoginName": "sample string 2",
  "FName": "sample string 3",
  "LName": "sample string 4",
  "IsActive": true,
  "IsAdministrator": true,
  "Address": "sample string 7",
  "EmailAddress": "sample string 8",
  "MobilePhone": "sample string 9",
  "HomePhone": "sample string 10",
  "Phone": "sample string 11",
  "FaxNumber": "sample string 12",
  "ExtUserCode": "sample string 13",
  "FID": "sample string 14",
  "Password": "sample string 15"
}

application/xml, text/xml

Sample:
<TLoginInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.SystemManage">
  <Address>sample string 7</Address>
  <EmailAddress>sample string 8</EmailAddress>
  <ExtUserCode>sample string 13</ExtUserCode>
  <FID>sample string 14</FID>
  <FName>sample string 3</FName>
  <FaxNumber>sample string 12</FaxNumber>
  <HomePhone>sample string 10</HomePhone>
  <IsActive>true</IsActive>
  <IsAdministrator>true</IsAdministrator>
  <LName>sample string 4</LName>
  <LoginName>sample string 2</LoginName>
  <MobilePhone>sample string 9</MobilePhone>
  <Password>sample string 15</Password>
  <PersonID>1</PersonID>
  <Phone>sample string 11</Phone>
</TLoginInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Add a user.

API_Data_Int32
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": 2
}

application/xml, text/xml

Sample:
<API_Data_int xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data>2</Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_int>