Set Device Data
POST/api/v2/device/:deviceId/deviceData
Stores deviceData on the device. Body follows the agent-zone data structure.
Request
Path Parameters
- application/json
Body
required
Timestamp of the last metadata snapshot
Device identifier
Device type tokens
Platform identifier
Platform name
Available GetApp server URLs
Delivery source mode
When true, requests that a master agent orchestrate this device
When true, the device subscribes to the master SSE command channel
Master device-id that is currently orchestrating this device
Orchestrator identifier
metadata
object
Device metadata. Known fields are listed above. Any additional key-value pairs reported by the agent are flattened into this object (mirrors the Rust serde flatten pattern).
MAC address
IP address
Device name
location
object
Operating system
OS release version
Available storage in bytes
battery
object
Battery level as a percentage (0–100)
Battery health as a percentage (0–100)
Estimated time remaining in minutes
Battery state: Charging | Discharging | Full | Empty | Unknown
Whether this is a virtual/emulated battery
Currently active GetApp server URL
Device metadata. Known fields are listed above. Any additional key-value pairs reported by the agent are flattened into this object (mirrors the Rust serde flatten pattern).
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
Orchestrated by identifier
Orchestrator identifier
{
"orchestrated_by": "string",
"orchestratorId": "string"
}