Get multiple Tag Relation values (with Body)

API สำหรับอ่านค่าที่จัดเก็บอยู่หลาย Tag Relation พร้อมกัน กรณีที่มีจำนวน Tag Relation มากกว่า Method GET จะรองรับ

Example URL

https://api.icube.co.th/integration/webapi/tagrelation/value?name=Material,Inventory&starttime=*-10y&endtime=*

Parameter

  • name

  • starttime

  • endtime

Method

POST

Authorization

Bearer {Token}

Body

{
    "tagrelations": "Material",
    "starttime": "*-10mo",
    "endtime": "*",
    "statusData": 9
}

Responses

{
    "data": [
        {
            "tagRelationName": "Material",
            "Material": "Steel",
            "Shortname": "STL",
            "Longname": "Stainless Steel",
            "quality": 0,
            "status": 17,
            "timeStamp": "2024-09-19T14:15:00+07:00"
        },
        {
            "tagRelationName": "Material",
            "Material": "Plastic",
            "Shortname": "PLST",
            "Longname": "Polyethylene",
            "quality": 0,
            "status": 18,
            "timeStamp": "2024-09-19T14:15:00+07:00"
        }
    ]
}

Last updated