Update multiple Tag Relation value

Updates the specified values for the tag relation

Example URL

https://api.icube.co.th/integration/webapi/tagrelation/TagRelationData3/value

Last Update: 1 NOV 2024

Update Tag Relation Value

Method: PUT

URL: {{base_url}}/tagrelation/{tagrelationname}/value


Request Body:

The request body must be an array of tag relation value objects, each containing the following parameters:

Parameter
Data Type
Description

tagRelationValueId

int

Unique identifier for the tag relation value.

timeStamp

datetime

Timestamp of when the values are recorded.

fieldValues

array

An array of field value objects, each containing:

Field Value Object:

Parameter
Data Type
Description

field_Id

int

Unique identifier for the field.

value

variant

The value associated with the field, which can be one of the following data types:

Value Data Types:

Data Type
Description

string

Represents text data.

int

Represents integer data.

big int

Represents large integer data.

boolean

Represents boolean values (true/false).

double

Represents floating-point data.


Example Request Body:

[
    {
        "tagRelationValueId": integer,
        "timeStamp": "datetime",
        "fieldValues": [
            {
                "field_Id": integer,
                "value": "variant"
            },
            {
                "field_Id": integer,
                "value": "variant"
            },
            {
                "field_Id": integer,
                "value": "variant"
            }
        ]
    }
]

Response Example:

{
    "message": "string"
}

Response Details:

Object
Data Type
Description

message

string

Success message indicating the result of the write operation.

Last updated