> 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
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tricloudnexus.io/edge/nexus-modules/data-connector-modules/opcuamodule/direct-commands/write.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
