Assign devices

Assign LoRaWAN device to a building

Request URL:

POST /controllers/lorawan-assign/{Serial number}/{buidling ID}

Headers:

Content-Type: application/json
Authorization: Bearer {access_token}

Body:

{
    "app_key":"A0685DFA*******************19A"
}

Response:

{
    "controller_reassign": {
        "id": 103***,
        "controller_id": 32***,
        "building_id": 1076,
        "floor_id": null,
        "space_id": null,
        "room_id": null,
        "created_at": "2024-04-03 12:58:06",
        "deleted_at": null
    },
    "_links": {
        "self": {
            "href": "/v1/controllers/lorawan-assign/XJP*********M/1076"
        }
    }
}

Last updated