POST api/Security/RegisterMobileUser

Request Information

URI Parameters

None.

Body Parameters

MobileSessionModel
NameDescriptionTypeAdditional information
Email

string

Required

Password

string

None.

Version

string

None.

OSVersion

string

None.

Token

string

None.

SecurityID

string

None.

DeviceID

globally unique identifier

None.

Manufacturer

string

None.

Model

string

None.

Product

string

None.

Serial

string

None.

IMEI

string

None.

HashCode

string

None.

Longitude

decimal number

None.

Latitude

decimal number

None.

Speed

decimal number

None.

Altitude

decimal number

None.

SesionID

globally unique identifier

None.

Command

string

None.

CompanyID

globally unique identifier

None.

VehicleID

globally unique identifier

None.

DriverID

globally unique identifier

None.

ContactID

globally unique identifier

None.

CompanyEmail

string

None.

DriverPIN

string

None.

ApplicationMode

integer

None.

DVRMode

integer

None.

IsAnonymous

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "Password": "sample string 2",
  "Version": "sample string 3",
  "OSVersion": "sample string 4",
  "Token": "sample string 5",
  "SecurityID": "sample string 6",
  "DeviceID": "a17119a5-1f1c-4e86-8992-812a76df99e0",
  "Manufacturer": "sample string 7",
  "Model": "sample string 8",
  "Product": "sample string 9",
  "Serial": "sample string 10",
  "IMEI": "sample string 11",
  "HashCode": "sample string 12",
  "Longitude": 1.1,
  "Latitude": 1.1,
  "Speed": 1.1,
  "Altitude": 1.1,
  "SesionID": "b4b3ba41-cb51-4f32-b833-6c44e9b6fba3",
  "Command": "sample string 13",
  "CompanyID": "552f22bc-3271-4dac-83dc-43ae7abecbaf",
  "VehicleID": "6bcf2a8d-c174-45fa-ac34-3241d38f2a61",
  "DriverID": "16249fd1-1c2e-4edd-a292-68e62f217a0f",
  "ContactID": "608363b5-f5d5-4d84-b984-2b159f061153",
  "CompanyEmail": "sample string 14",
  "DriverPIN": "sample string 15",
  "ApplicationMode": 16,
  "DVRMode": 17,
  "IsAnonymous": true
}

application/xml, text/xml

Sample:
<MobileSessionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeritaTech.TransportRegistry.Data.Models">
  <Altitude>1.1</Altitude>
  <ApplicationMode>16</ApplicationMode>
  <Command>sample string 13</Command>
  <CompanyEmail>sample string 14</CompanyEmail>
  <CompanyID>552f22bc-3271-4dac-83dc-43ae7abecbaf</CompanyID>
  <ContactID>608363b5-f5d5-4d84-b984-2b159f061153</ContactID>
  <DVRMode>17</DVRMode>
  <DeviceID>a17119a5-1f1c-4e86-8992-812a76df99e0</DeviceID>
  <DriverID>16249fd1-1c2e-4edd-a292-68e62f217a0f</DriverID>
  <DriverPIN>sample string 15</DriverPIN>
  <Email>sample string 1</Email>
  <HashCode>sample string 12</HashCode>
  <IMEI>sample string 11</IMEI>
  <IsAnonymous>true</IsAnonymous>
  <Latitude>1.1</Latitude>
  <Longitude>1.1</Longitude>
  <Manufacturer>sample string 7</Manufacturer>
  <Model>sample string 8</Model>
  <OSVersion>sample string 4</OSVersion>
  <Password>sample string 2</Password>
  <Product>sample string 9</Product>
  <SecurityID>sample string 6</SecurityID>
  <Serial>sample string 10</Serial>
  <SesionID>b4b3ba41-cb51-4f32-b833-6c44e9b6fba3</SesionID>
  <Speed>1.1</Speed>
  <Token>sample string 5</Token>
  <VehicleID>6bcf2a8d-c174-45fa-ac34-3241d38f2a61</VehicleID>
  <Version>sample string 3</Version>
</MobileSessionModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MobileSessionModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.