Move Device to Edge

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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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

KeyTypeDescriptionRequired
device_idstringUnique device UUID.Yes

Request Body

KeyTypeDescriptionRequired
proxy_idstringID 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

StatusDescription
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.
Path Params
string
required

Unique device UUID

Body Params
string
required

ID of the target Edge to move the device to, as returned by List Edges.

Responses

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).

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json