Update device metadata
PUT/api/v2/device/metadata
Updates device metadata including name, location, and custom fields. Use null values in misc object to delete specific custom fields.
Request
- application/json
Body
required
location
object
nullable
Device name
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
battery
object
nullable
Comprehensive battery status information
Battery health as a percentage (0-100), based on current capacity vs design capacity
Whether the device is plugged into power (charging or full)
Whether this is a virtual/emulated battery (e.g., in VM)
Battery level as a percentage (0-100)
Battery state description (Charging, Discharging, Full, Empty, Unknown)
Estimated time remaining in minutes (for discharge or charge)
location
object
nullable
MAC address
Device name
Operating system
OS release version
Available storage in bytes
Currently active GetApp server URL
{
"battery": {
"health": 0,
"isPluggedIn": true,
"isVirtual": true,
"level": 0,
"state": "string",
"timeRemainingMinutes": 0
},
"location": {
"alt": "string",
"lat": "string",
"long": "string"
},
"macAddress": "string",
"name": "string",
"os": "string",
"osRelease": "string",
"storageAvailable": 0,
"urlGetAppServerActive": "string"
}