POST api/User/RegisterByInvitation

Register a user.

Request Information

URI Parameters

None.

Body Parameters

user info

UserRegisterInfo
NameDescriptionTypeAdditional information
LoginName

string

None.

Password

string

None.

FName

string

None.

LName

string

None.

Address

string

None.

EmailAddress

string

None.

MobilePhone

string

None.

HomePhone

string

None.

FaxNumber

string

None.

InvitationCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "LoginName": "sample string 1",
  "Password": "sample string 2",
  "FName": "sample string 3",
  "LName": "sample string 4",
  "Address": "sample string 5",
  "EmailAddress": "sample string 6",
  "MobilePhone": "sample string 7",
  "HomePhone": "sample string 8",
  "FaxNumber": "sample string 9",
  "InvitationCode": "sample string 10"
}

application/xml, text/xml

Sample:
<UserRegisterInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.SystemManage">
  <Address>sample string 5</Address>
  <EmailAddress>sample string 6</EmailAddress>
  <FName>sample string 3</FName>
  <FaxNumber>sample string 9</FaxNumber>
  <HomePhone>sample string 8</HomePhone>
  <InvitationCode>sample string 10</InvitationCode>
  <LName>sample string 4</LName>
  <LoginName>sample string 1</LoginName>
  <MobilePhone>sample string 7</MobilePhone>
  <Password>sample string 2</Password>
</UserRegisterInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Register 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>