POST api/TruckRegister/ActivateTruck

Request Information

URI Parameters

None.

Body Parameters

ActivateParameterModels
NameDescriptionTypeAdditional information
HHID

string

None.

CompanyID

string

None.

UDID

string

None.

Activate

boolean

None.

lat

decimal number

None.

lng

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "HHID": "sample string 1",
  "CompanyID": "sample string 2",
  "UDID": "sample string 3",
  "Activate": true,
  "lat": 1.0,
  "lng": 1.0
}

application/xml, text/xml

Sample:
<TruckRegisterController.ActivateParameterModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Controllers">
  <Activate>true</Activate>
  <CompanyID>sample string 2</CompanyID>
  <HHID>sample string 1</HHID>
  <UDID>sample string 3</UDID>
  <lat>1</lat>
  <lng>1</lng>
</TruckRegisterController.ActivateParameterModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultWithModel
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

refcode

string

None.

total

integer

None.

datas

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2",
  "refcode": "sample string 3",
  "total": 4,
  "datas": {}
}

application/xml, text/xml

Sample:
<ResultWithModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Android_API.Models">
  <datas />
  <message>sample string 2</message>
  <refcode>sample string 3</refcode>
  <success>true</success>
  <total>4</total>
</ResultWithModel>