IoT Stadium

API Documentation

Telemetry Profile

Telemetry Profile - PUT Update Telemetry Profile Comparison

Put

{{url_iot_backend}}/ext/telemetry-profile/:id
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Authorization",
      "value": "Bearer {{token}}"
    }

Parameter

Field Type Description
id Integer

ID of the profile to update

{
    "unit": "°K",
    "conversion_properties": {
        "min": null,
        "max": null,
        "conversion_properties": {
            "comparator": "gte",
            "comparison": [
                {
                    "wording": "4",
                    "comparator": "gte",
                    "value": "10"
                }
            ]
        }
    },
    "telemetry_profile_name": "comparison update",
    "telemetry_profile_type_id": 2
}                                            
{
    "message": "telemetry_profile updated",
    "data": {
        "id": 70
    },
    "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."
    ]
}