- 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
Updating an Asset info in MobiWork
Updating an Asset info in MobiWork
URL Format
https://{domain}.mobiwork.com/api/rest/{clientId}/{versionNumber}/asset/{assetId}/edit.html?token=XXXXXXXX&userId={userId}
https://{domain}.mobiwork.com/api/rest/{clientId}/{versionNumber}/asset/{assetId}/edit.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 |
userId optional |
If provided, this User ID will be taken as a logged in user |
Request Body XSD
Response Body XSD
Curl Example
HTTP Method: | POST |
Request: | curl -k -X POST -H "https://www.mobiwork.com/api/rest/12014/10.0.78/asset/56943/edit.html?token=COJL8X2FKSLMMRTYCH2B" -data '<request> <asset> <externalId>API11111</externalId> <name>FORD FLEET TRUCK1</name> <description>FORD FLEET TRUCK</description> <modelNumber></modelNumber> <serialNumber>1FDE5C1206F422311</serialNumber> <warrantStartDate></warrantStartDate> <warrantEndDate></warrantEndDate> <status>Active</status> <typeName>Vehicle</typeName> <category>Vehicle</category> <subCategory>FORD FLEET TRUCK</subCategory> <customFields> <customField> <apiName>valueofassets</apiName> <value>40000</value> <index>0</index> </customField> <customField> <apiName>LicenseTag</apiName> <value>18011TF</value> <index>0</index> </customField> <customField> <apiName>ServicedBy</apiName> <value>Royal Palm Auto Spa222</value> <index>0</index> </customField> <customField> <apiName>OilFilterNumber</apiName> <value>8122222</value> <index>0</index> </customField> </customFields> </asset> </request>' |
Response: | <?xml encoding="UTF-8" ?> <response version="10.0.78" statusCode="1"> <asset> <mobiworkAssetId>56943</mobiworkAssetId> <externalId>API11111</externalId> <name>FORD FLEET TRUCK1</name> <description>FORD FLEET TRUCK</description> <modelNumber></modelNumber> <serialNumber>1FDE5C1206F422311</serialNumber> <categoryId>5011</categoryId> <category>Vehicle</category> <subCategoryId>27511</subCategoryId> <subCategory>FORD FLEET TRUCK</subCategory> <customFieldList> <customField> <apiName>LicenseTag</apiName> <fieldType>1</fieldType> <value>18011TF</value> <name>License Tag</name> </customField> <customField> <apiName>ServicedBy</apiName> <fieldType>6</fieldType> <value>Royal Palm Auto Spa222</value> <name>Serviced By</name> </customField> <customField> <apiName>OilFilterNumber</apiName> <fieldType>1</fieldType> <value>8122222</value> <name>Oil Filter Number</name> </customField> <customField> <apiName>valueofassets</apiName> <fieldType>1</fieldType> <value>40000</value> <name>Value of asset</name> </customField> <customField> <apiName>images</apiName> <fieldType>25</fieldType> <value></value> <name>Additional Images</name> </customField> </customFieldList> </asset> </response> |