LoRa Gateway - PUT Update LoRa Gateway
Updates an existing LoRa Gateway
Puthttps://api.iotstadium.com/ext/lora-gateway/:id
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
},
Parameter
Field | Type | Description |
---|---|---|
gateway_name | String |
Name of the LoRa Gateway (required) |
gateway_id | String |
Unique gateway identifier (UUID). |
token | String |
The token of your LoRa Gateway. |
description | String |
The description of your LoRa Gateway. |
shared | Integer |
Does your gateway able to share information between different tenants? |
gateway_image_default | String | |
location_id | Integer |
The ID for your the assigned location for your LoRa Gateway |
location_custom_field | Array |
Additional location detail. |
{
"gateway_name": "LoRa Gateway LT1",
"gateway_id": "43d5d00e-ef5a-49cc-a053-735016b3b830",
"token": "O7mqU7OeuozMaMgGvNxx2WBjMB9ne42pVw3EW4eRg0eYsUdsl2wUU5mPVZtHCce6ZCgRNtmo9UQy4KqW",
"description": "test lora",
"shared": 1,
"gateway_image_default": null,
"location_id": 170,
"location_custom_field": [
{
"location_custom_field_id": 271,
"value": "new"
}
]
}
{
"message": "gateway updated",
"data": {
"id": 27
},
"code": 200
}
{
"message": "Invalid Message",
"code": 400,
"errors": [
{
"field": "gateway_name",
"message": "The gateway name field is required.."
}
]
}
{
"message": "Fail update gateway: Bad Request.",
"code": 400,
"errors": [
{
"message": "Fail update gateway: Bad Request.",
"field": "gateway"
}
]
}
{
"message": "Not Allowed",
"error": {
"message": "Not Allowed",
"field": "user"
},
"code": 403
}