> For the complete documentation index, see [llms.txt](https://docs.icube.co.th/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.icube.co.th/icube-platform/icube-server/integration/provider/apis-document/update-multiple-tag-values.md).

# Update multiple tag values

Updates the specified values for the tag with GUID

`Last Update: 7 NOV 2024`

**Example URL**

```
https://{api_base_url}/integration/webapi/tag/B15-Status/value
```

**Note**: This endpoint demonstrates updating the value for a specific tag (`B15-Status`) using the PUT method. In this example, the PUT request is used to modify the value of the tag.

#### Update Tag Value

**Method:** `PUT`

**URL:** `{{base_url}}/tag/{tagname}/value`

***

**Request Body:**

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

<table><thead><tr><th width="206">Parameter</th><th width="149">Data Type</th><th>Description</th></tr></thead><tbody><tr><td><code>tagValueId</code></td><td>GUID</td><td>Unique identifier for the tag value.</td></tr><tr><td><code>value</code></td><td>variant</td><td>The value associated with the tag. It can be one of the following data types:</td></tr><tr><td><code>timeStamp</code></td><td>datetime</td><td>Timestamp of when the value is recorded.</td></tr></tbody></table>

**Value Data Types:**

| Data Type | Description                                 |
| --------- | ------------------------------------------- |
| `string`  | Represents text data.                       |
| `int`     | Represents integer data.                    |
| `boolean` | Represents boolean values (`true`/`false`). |
| `double`  | Represents floating-point data.             |

***

**Example Request Body:**

```json
[
    {
        "tagValueId": "GUID",
        "value": "variant",
        "timeStamp": "datetime"
    },
    {
        "tagValueId": "GUID",
        "value": "variant",
        "timeStamp": "datetime"
    }
]

```

***

**Response Example:**

```json
{
    "message": "string"
}

```

**Response Details:**

<table><thead><tr><th width="157">Object</th><th width="139">Data Type</th><th>Description</th></tr></thead><tbody><tr><td><code>message</code></td><td>string</td><td>Success message indicating the result of the write operation.</td></tr></tbody></table>
