Assets

Update device mappings on an asset

Changed on

Install, 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 URL
    https://api.equipmentshare.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

asset_id, integer required

Request body

UpdateDeviceMappingsRequest required
install, InstallDevice[]
uninstall, UninstallDevice[]
update, UpdateDevice[]

Response

UpdateDeviceMappingsResponse required
asset_id, integer
device_mappings, DeviceMappingsResponse

Changes

    • info

      added the new optional request property uninstall/items/device_serial

    • info

      the request property uninstall/items/device_id became nullable

    • info

      the request property uninstall/items/device_id became optional