Features - Connectors Framework - Inbound REST API - Assets
Update Asset Location
Overview
Update an asset's location based on the supplied asset id
URL Format
https://{domain}.mobiwork.com/api/rest/{clientId}/{versionNumber}/asset/{assetId}/location/update.html?token=XXXXXXXX&userId={userId}
Arguments
clientId
required
MobiWork assigned unique ID of the company
versionNumber
required
Version number of MobiWork API SDK release. Current version is: 10.0.78
token
required
Part of URL as a request parameter and is required in every call to verify access to API calls
assetId
required
The identifier of the asset to be updated
Return
Returns a location update success message if valid arguments are provided. Returns an error if not a valid request
Request Body XSD
Response Body XSD
Curl Example
HTTP Method: POST
Request: curl -k -X POST "https://www.mobiwork.com/api/rest/12014/10.0.78/asset/56943/edit.html?token=COJL8X2FKSLMMRTYCH2B" -data <request>
<assetLocation>
<customerId>1</customerId>
<customerName>John Doe</customerName>
<locationId>1</locationId>
<location>
<address1>123 Beach Road</address1>
<address2></address2>
<city>Delray Beach</city>
<state>FL</state>
<zipCode>33444</zipCode>
<countryId>1</countryId>
<latitude>0</latitude>
<longitude>0</longitude>
<name></name>
</location>
</assetLocation>
</request>
Response: <?xml encoding="UTF-8" ?>
<response version="10.0.78" statusCode="1">Customer location applied to asset successfully</response>