POST api/mobile/driverlink
Link an asset to a service
Request Information
URI Parameters
None.
Body Parameters
The AssetLinkRequestModel
AssetLinkRequestModelName | Description | Type | Additional information |
---|---|---|---|
Token |
The token returned after login used for authentication |
string |
None. |
DriverId |
The driver id returned after login used for authentication |
unsigned integer |
None. |
ServiceID |
The service id being attached |
unsigned integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Token": "sample string 1", "DriverId": 2, "ServiceID": 3 }
application/xml, text/xml
Sample:
<AssetLinkRequestModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Token>sample string 1</Token> <DriverId>2</DriverId> <ServiceID>3</ServiceID> </AssetLinkRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
True if successful
DriverLinkResponseModelName | Description | Type | Additional information |
---|---|---|---|
Result | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Result": true }
application/xml, text/xml
Sample:
<DriverLinkResponseModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Result>true</Result> </DriverLinkResponseModel>