Assets
Update device mappings on an asset
Changed onInstall, uninstall, and update device entries on an asset in a single atomic request. Processing order: uninstalls, then updates, then installs. Maintains audit history (uninstalled devices are kept with date_uninstalled set). Uninstall entries take device_id or device_serial. An unknown device_id is a no-op, but a device_serial must be actively installed on this asset (DEVICE_NOT_INSTALLED otherwise). Installs and updates are refused on archived assets; uninstalls are still allowed. Supports USER, USER_LEGACY, and M2M authentication.
patch/v1/assets/{asset_id}/device-mappings
Request
- Base URLhttps://api.equipmentshare.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Path parameters
asset_id, integer required
Request body
Update Device Mappings Request required
install, Install Device[]
uninstall, Uninstall Device[]
update, Update Device[]
Response
Update Device Mappings Response required
asset_id, integer
device_mappings, Device Mappings Response
Changes
- info
added the new optional request property
uninstall/items/device_serial - info
the request property
uninstall/items/device_idbecame nullable - info
the request property
uninstall/items/device_idbecame optional
- info