IoT Stadium

API Documentation

Device Location

Device Location - DEL Delete Location

Deletes a specific location by ID. This may unassign or detach linked devices, depending on implementation.

Delete
https://api.iotstadium.com/auth/ext/locations/:id
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Authorization",
      "value": "Bearer {{token}}"
    }
DELETE 'https://api.iotstadium.com/ext/locations/173213'                                            
{
    "message": "location deleted",
    "data": {
        "id": "173"
    },
    "code": 200
}
{
    "message": "data not found",
    "errors": [
        {
            "message": "data not found",
            "field": "location"
        }
    ],
    "code": 404
}                                                
{
    "message": "Not Allowed",
    "error": {
        "message": "Not Allowed",
        "field": "user"
    },
    "code": 403
}