Link devices to an access point
|
POST /api/v1/billing/access-points/{access_point}/attach |
Links one or more devices to an access point.
The request body is an array of device objects.
For an intercom (intercom), the id field contains the numeric intercom ID.
For a BLE controller (openy_controller), it contains the controller UUID.
Devices that are already linked aren't duplicated.
Returns the access point with updated device lists.
[
{
"id": 10,
"type": "intercom"
},
{
"id": "00000000-0000-0000-0000-000000000003",
"type": "openy_controller"
}
]
Method parameters
string access_point required , (path) Access point UUID.
mixed array, []* Array of device objects to link.
mixed string, [].type* Device type. Allowed values: `intercom`, `openy_controller`, `camera`.
|
200 |
|
Devices linked. Returns the access point with its linked devices (see Get access point information). |
|
422 |
|
Validation error. For more information, see General information > Validation. JSON
|