v8

latestSwagger 2.02026-07-13120150263.9 KB

Given the ID for a device and a relationship ID associated with this device, create a new relationship for between the given device and a second device specified in the body.

Create a device relationship

put/devices/{deviceId}/relationships/{relationshipId}

Path parameters

deviceIdstring required

Unique ID of the device.

relationshipIdstring required

Unique ID of a relationship between devices.

Query parameters

api-versionstring required

The version of the API being called.

Request body

idstring

The unique identifier of this relationship.

sourcestring

The device ID of the source (parent) device.

targetstring

The device ID of the target (child) device.

Response

Success

idstring

The unique identifier of this relationship.

sourcestring

The device ID of the source (parent) device.

targetstring

The device ID of the target (child) device.