POST api/UserManagement/Register

Register the new Agent account

Request Information

URI Parameters

None.

Body Parameters

Input for the agent registration

RegistrationInputModel
NameDescriptionTypeAdditional information
AgentCode

Code of the Agent

string

Required

Max length: 20

Email

Email of the Agent

string

Required

UserName

Login UserName

string

Required

Max length: 30

Password

Login Password

string

Required

Min length: 6

Question1

Details of Security Question 1

SecurityQuestionInput

Required

Question2

Details of Security Question 2

SecurityQuestionInput

None.

Request Formats

application/json, text/json

Sample:
{
  "AgentCode": "sample string 1",
  "Email": "sample string 2",
  "UserName": "sample string 3",
  "Password": "sample string 4",
  "Question1": {
    "QuestionId": 1,
    "Response": "sample string 2"
  },
  "Question2": {
    "QuestionId": 1,
    "Response": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<RegistrationInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GBG.AS.AgentPortal.API.Areas.Account.Models">
  <AgentCode>sample string 1</AgentCode>
  <Email>sample string 2</Email>
  <Password>sample string 4</Password>
  <Question1>
    <QuestionId>1</QuestionId>
    <Response>sample string 2</Response>
  </Question1>
  <Question2>
    <QuestionId>1</QuestionId>
    <Response>sample string 2</Response>
  </Question2>
  <UserName>sample string 3</UserName>
</RegistrationInputModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Success of the Process

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.