# Set tag value

This is a pre-built action located under the **WebService Elements**. The functionality of this action in Avo Assure is to set the value of a specific tag (XML or JSON element) within the request body for the WebService.&#x20;

### Syntax

**Input Value:** `Tag Value`

| Argument             | Description                                                         |
| -------------------- | ------------------------------------------------------------------- |
| Tag Value (Required) | Enter the value to be assigned to a tag in the web service request. |

#### Output Value

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

**Example**

**Sets a /first\_name Tag Value in the Web Service Request**

The **Set tag value** action takes the value from the Input Value column (e.g., John) and updates or inserts the **/first\_name** JSON tag in the WebService request body.

<figure><img src="/files/K6sTXjKPfNtBOvC7vypA" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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.avoautomation.com/avo-assure/actions/web-service-operations-1/web-service-elements/set-tag-value.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.
