> For the complete documentation index, see [llms.txt](https://docs.tricloudnexus.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tricloudnexus.io/edge/nexus-modules/data-connector-modules/opcuamodule/direct-commands/write.md).

# Write

Calling this method triggers writing to tags, such that the values are written to the OPC UA server. Writing to tags requires that the tag is defined as a Write\_Only tag. Read\_Only tags causes an error if they are tried to be written to.

Write operations are deterministic, which means that the order of writes are guaranteed. They will be written to the OPC UA server in the same order as they are issued.

If the connection to the OPC UA server is down, from a temporary network outage, write operations are buffered in the Edge Device. As soon as the network connection is restored, the write operations will be executed, still preserving the order.

**Method Name:**\
Write

**Payload:**\
The example below shows 3 write operations to 3 different tags.

```
{
    "writes": 
    [
        {
            "id": "tag1",
            "value": 1
        },
        {
            "id": "tag2",
            "value": 2
        },
        {
            "id": "tag3",
            "value": 3
        }
    ]
}
```

**Result**\
If the write operation succeeds, the following is returned:

```
{
    "status":200,
    "payload":null
}
```
