IoT Stadium

API Documentation

Device Location

Device Location - Add Location

Adding the new location

Post
https://api.iotstadium.com/auth/ext/locations

Parameter

Field Type Description
location_name Text

The name of your new location (Required)

coord_lat Number

The latitude coordinate of your new location (Max 128 characters)

coord_long Number

The longitude coordinate of your new location (Max 128 characters)

description Text

The description of your location

address Text

The address of your location

custom_field Text

The additional detail of your location

{
    "message": "location created",
    "data": {
        "id": 173
    },
    "code": 200
}
{
    "message": "Invalid Message",
    "code": 400,
    "errors": [
        {
            "field": "location_name",
            "message": "The location name field is required.."
        },
        {
            "field": "description",
            "message": "The description may not be greater than 128 characters."
        }
    ]
}