- Overview
- Account Settings
- Assets
- Connectors Framework
- Customer Portal
- Customers
- Dashboards
- Devices
- Dispatching
- Forms
- Inventory
- Invoices & Billing
- Locations
- Payments
- Parts
- Projects
- Quotes
- Recurrent Routes
- Recurrent Services
- Reports
- Sales Orders
- Schedule
- Services
- Tasks
- Text Messaging
- Time Tracking
- Users
- Work Orders
Overview
Update an asset's location based on the supplied asset id
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}
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
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> |