Moves an Edge device from the Edge it is currently monitored by to another Edge (proxy_id - the target Edge's id, as returned by List Edges). Both Edges must belong to the same customer as the device. The device's monitoring host is re-pointed to the target Edge, so telemetry polling and commands run through it from then on; the device's address, custom parameters and space are unchanged. Child devices of the moved device move together with it.
Moving a device to the Edge it is already on succeeds without changing anything.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Overview
Moves an Edge device from the Edge it is currently monitored by to another Edge. Both Edges must belong to the same customer as the device.
The device's monitoring host is re-pointed to the target Edge, so telemetry polling and commands run through it from then on. The device's address, custom parameters and space are unchanged. Child devices of the moved device move together with it.
Moving a device to the Edge it is already on succeeds without changing anything.
Authorization
This endpoint requires Authorization.
Path Parameters
| Key | Type | Description | Required |
|---|---|---|---|
| device_id | string | Unique device UUID. | Yes |
Request Body
| Key | Type | Description | Required |
|---|---|---|---|
| proxy_id | string | ID of the target Edge to move the device to, as returned by Get Edges. | Yes |
{
"proxy_id": "proxy-uuid"
}Response
200 OK
{
"success": true
}Errors
| Status | Description |
|---|---|
| 400 | Missing or unknown proxy_id; the device is not an Edge device; the device is a child device (move its parent instead); the device is the Edge's own agent device; or the target Edge belongs to a different customer. |
| 401 | Missing or invalid Authorization header. |
| 404 | Device not found in the organization (checked once proxy_id is valid; an unknown proxy_id returns 400 first). |
| 422 | The target Edge is offline or its setup has not finished; or the monitoring server did not confirm the move. The move may be partly applied — retrying the request is safe. |
400Missing or unknown proxy_id; the device is not an Edge device; the device is a child device (move its parent instead); the device is the Edge's own agent device; or the target Edge belongs to a different customer.
401Missing or invalid Authorization header.
404Device not found in the organization (checked once proxy_id is valid; an unknown proxy_id returns 400 first).
422The target Edge is offline or its setup has not finished; or the monitoring server did not confirm the move (the move may be partly applied - retrying the request is safe).
