Insert multiple tagrelation values
Add the specified tag relation values with their field mappings and timestamps.
Last Update: 7 NOV 2024
Example URL
Note: This endpoint demonstrates querying the value for a specific tag relation with the mode=write
query parameter. In this example, the query specifies that the data should be in write mode, indicating the insertion of new values.
Add Tagrelation Values
Method: POST
URL: {{base_url}}/tagrelation/value?mode=write
Query Parameters:
Parameter | Data Type | Description |
---|---|---|
| string | Mode of the Request
(Default: |
| bool | Update Status of data
(Default: |
| bool | Clear records of data
(Default: |
Request Body:
The request body must be an array of tag relation value objects, each containing the following parameters:
Parameter | Data Type | Description |
---|---|---|
| string | Name of the tag relation to which the values belong. |
| array | An array of field mapping objects for the tag relation. |
| datetime | Timestamp of the value being written. |
Field Mappings:
Each object in the fieldMappings
array must contain the following parameters:
Parameter | Data Type | Description |
---|---|---|
| string | Name of the field being mapped. |
| variant | Value associated with the field. It can be one of the following data types: |
Value Data Types:
Data Type | Description |
---|---|
| Represents text data. |
| Represents integer data. |
| Represents large integer data. |
| Represents boolean values ( |
| Represents floating-point data. |
Example Request Body:
Response Example:
Response Details:
Object | Data Type | Description |
---|---|---|
| string | Success message indicating the result of the write operation. |
Last updated