POST api/Account?apiKey={apiKey}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

string

Required

Body Parameters

RegisterViewModel
NameDescriptionTypeAdditional information
Email

string

Required

UserName

string

Required

ContactNo

string

Required

Password

string

Required

AspNetUserId

string

None.

IsSubscribe

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "UserName": "sample string 2",
  "ContactNo": "sample string 3",
  "Password": "sample string 4",
  "AspNetUserId": "sample string 5",
  "IsSubscribe": true
}

application/xml, text/xml

Sample:
<RegisterViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Service.Models">
  <AspNetUserId>sample string 5</AspNetUserId>
  <ContactNo>sample string 3</ContactNo>
  <Email>sample string 1</Email>
  <IsSubscribe>true</IsSubscribe>
  <Password>sample string 4</Password>
  <UserName>sample string 2</UserName>
</RegisterViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional information
Status

integer

None.

IsValid

boolean

None.

Message

string

None.

Code

string

None.

ID

globally unique identifier

None.

Errors

Collection of string

None.

ErrorCodes

Collection of ErrorCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "IsValid": true,
  "Message": "sample string 3",
  "Code": "sample string 4",
  "ID": "cc88d097-0ee4-48b3-9769-c1116c819f8e",
  "Errors": [
    "sample string 1",
    "sample string 2"
  ],
  "ErrorCodes": [
    1,
    1
  ]
}

application/xml, text/xml

Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetlet.Entity">
  <Code>sample string 4</Code>
  <ErrorCodes>
    <ErrorCode>Success</ErrorCode>
    <ErrorCode>Success</ErrorCode>
  </ErrorCodes>
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <ID>cc88d097-0ee4-48b3-9769-c1116c819f8e</ID>
  <IsValid>true</IsValid>
  <Message>sample string 3</Message>
  <Status>1</Status>
</ApiResponse>