BLE Gateway - PUT Update BLE Gateway (MQTT)
Post
{{url_iot_backend}}/ext/ble-gateway
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
}
Parameter
Field | Type | Description |
---|---|---|
gateway_name | String |
Name of the BLE Gateway (required)/ |
gateway_id | String |
Unique gateway identifier (UUID). |
token | String |
The token of your BLE Gateway. |
description | String |
The description of your BLE Gateway. |
connetictivity_type | Integer |
The connectivity type of your BLE Gateway. |
device_network | Integer |
Network type ID. |
connectivity_type_id | Integer |
The ID of the connectivity type of your BLE Gateway. |
gateway_network_id | Integer |
The ID of your BLE Gateway. |
location_id | Integer |
The ID for your the assigned location for your BLE Gateway. |
location_custom_field | Array |
The additional detail of your location. |
{
"gateway_name": "test ble mqtt postman reupdate", // required
"gateway_id": "37898bcd-4321-4347-8dc0-e10aad7bcdec",
"token": "B0Ukanht4HLjsZvP2wV4fRVI7L7cWGabuqwH2pMnWwH6eAzzaTR33s0tzyUM8zA0XQcdbaBOV8FzCVlw",
"description": "test",
"connectivity_type": 1, //required
"device_network": 2,
"connectivity_type_id": 1,
"gateway_network_id": 2,
"location_id": 193,
"location_custom_field": [
{
"location_custom_field_id": 316,
"value": "park P1"
}
]
}
{
"message": "ble_gateway updated",
"data": {
"id": 62
},
"code": 200
}
{
"message": "Invalid Message",
"code": 400,
"errors": [
{
"field": "gateway_name",
"message": "The gateway name field is required.."
}
]
}
{
"message": "Not Allowed",
"error": {
"message": "Not Allowed",
"field": "user"
},
"code": 403
}