IoT Stadium

API Documentation

LoRa Gateway

LoRa Gateway - POST Add LoRa Gateway

Adding new LoRa Gateway

Post
https://api.iotstadium.com/ext/lora-gateway
{
	"key": "Content-Type",
	"value": "application/json"
},
{
	"key": "Authorization",
	"value": "Bearer {{token}}"
},

Parameter

Field Type Description
gateway_name String

Name for your LoRa gateway

gateway_id String

Unique gateway identifier (UUID).

token String

The token of your LoRa Gateway.

description String

Additional description for your LoRa Gateway

shared String

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 test postman", // required and max 128 char
    "gateway_id": null,
    "token": null,
    "description": "test lora", // max 300 char
    "shared": "1", // required and format just 0 or 1
    "gateway_image_default": null,
    "location_id": 170, // this get from device get location
    "location_custom_field": [
        {
            "location_custom_field_id": 271,
            "value": "new"
        }
    ]
}                                            
{
    "message": "lora_gateway created",
    "data": {
        "id": 27
    },
    "code": 200
}
{
    "message": "Invalid Message",
    "code": 400,
    "errors": [
        {
            "field": "gateway_name",
            "message": "The gateway name field is required.."
        },
        {
            "field": "shared",
            "message": "The selected shared is invalid."
        }
    ]
}