IoT Stadium

API Documentation

Telemetry Profile

Telemetry Profile - PUT Update Telemetry Profile Range Value

Updates an existing range value mapping for a telemetry field in the profile.

Put
https://api.iotstadium.com/ext/telemetry-profile/:id
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Authorization",
      "value": "Bearer {{token}}"
    }

Parameter

Field Type Description
unit String

Unit of your telemetry

conversion_properties Array

Contain the minimum and maximum value for you to convert

telemetry_profile_name String

The name for your telemetry profile

telemetry_profile_type_id Integer

ID for the telemetry profile

{
	"unit": "%",
	"conversion_properties": [
		{
		"min": 0,
		"max": 20,
		"label": "LOW"
		},
		{
		"min": 21,
		"max": 70,
		"label": "NORMAL"
		},
    		{
		"min": 71,
		"max": 100,
		"label": "HIGH"
		}
  	]
	"telemetry_profile_name": "Humidity",
	"telemetry_profile_type_id": 0,
}                                            
{
    "message": "telemetry_profile updated",
    "data": {
        "id": 69
    },
    "code": 200
}
{
    "telemetry_profile_name": [
        "The telemetry profile name field is required."
    ],
    "telemetry_profile_type_id": [
        "The telemetry profile type id field is required."
    ],
    "conversion_properties": [
        "The conversion properties field is required."
    ],
    "unit": [
        "The unit field is required."
    ]
}