IoT Stadium

API Documentation

LoRa Gateway

LoRa Gateway - PUT Update LoRa Gateway

Put

{{url_iot_backend}}/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)

description String

The description of your LoRa Gateway.

shared Integer

Does your gateway able to share information between different tenants?

location_id Integer

The ID for your the assigned location for your LoRa Gateway

gateway_id String

Unique gateway identifier (UUID).

token String

The token of your LoRa Gateway.

gateway_image_default String

location_custom_field Array

Additional location detail.

{
    "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
}