LoRaWAN Gateway - POST Add LoRaWAN Gateway
Adds a new LoRaWAN gateway to your account. You must provide details like gateway EUI, frequency plan, TTN version, and network server type.
Posthttps://api.iotstadium.com/ext/ttn-gateway
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Authorization",
"value": "Bearer {{token}}"
},
Parameter
Field | Type | Description |
---|---|---|
gateway_name | String |
Name of the LoRaWAN Gateway (required) |
ttn_gateway_type_id | Integer |
The gateway type identifier (required) |
gateway_eui | String |
The unique identifier for the LoRaWAN gateway |
frequency_plan | String |
Your selected frequency plan |
is_required_authenticated_connection | String |
Yes (1) or no (0) |
status_public | Boolean |
The public access status: true or false |
location_public | Boolean |
The availability to be accessed for specific location: true or false |
{
"gateway_name": "LoRAWAn Gateway LT1", // requierd
"ttn_gateway_type_id": 0, // required
"gateway_eui": "1243254777454542", // max 16char in frontend
"frequency_plan": "EU_863_870", // frequency plan LIST | required
"is_required_authenticated_connection": "0", // this only 0 and 1
"status_public": true, // required
"location_public": true // required
}
{
"message": "ttn_gateway created",
"data": {
"id": 101,
"api_key_cups": "",
"api_key_lns": ""
},
"code": 200
}
{
"message": "ttn_gateway created",
"data": {
"id": 100,
"api_key_cups": "Authorization: Bearer NNSXS.NAQQNYDR7UZXFAHQXGNOXX3HNOWJW6QOX4DNE3Q.ZK7HVHOJKFDKSPYX6CWEDWB6LVIR4HO3YCSXVCXVIAVUCE3XYYDQ",
"api_key_lns": "Authorization: Bearer NNSXS.65WUSG3MZEAZVE7JZE7BVUPIXWMK4YJDTNQGCVA.B52I5L6BRL5GP3WTCHSJFXZGBNVBTSRD7I77CEXZNXMSNUPFJBLQ"
},
"code": 200
}
{
"message": "Invalid Message",
"code": 400,
"errors": [
{
"field": "gateway_eui",
"message": "The gateway eui has already been taken."
}
]
}
{
"message": "Invalid Message",
"code": 400,
"errors": [
{
"field": "gateway_name",
"message": "The gateway name field is required.."
},
{
"field": "gateway_eui",
"message": "The gateway eui has already been taken."
}
]
}
{
"message": "TTN Profile not configured yet",
"code": "400",
"errors": [
{
"message": "TTN Profile not configured yet",
"field": "ttn_gateway"
}
]
}