# Set whole body

This is a pre-built Action located under the **WebService List Element**. The functionality of this Action in Avo Assure is to set the complete body content for the web service request.

{% hint style="info" %}
**Note**: You set the header (e.g., Content-Type) in the previous steps to ensure the request is formed correctly.
{% endhint %}

## **Syntax**

**Input Value**: `<Entire Body Content>`

| Argument                                    | Description                                                                       |
| ------------------------------------------- | --------------------------------------------------------------------------------- |
| <p>\<Entire Body Content><br>(Required)</p> | Provide the body content which you want to sent in the request. (e.g., JSON body) |

**Output Value**: `N/A`

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

### **Example: Setting the Entire Request Body for a Web Service Call**

In this example, we are explaining how to set the complete request body for a web service call during API testing.

* **Action**: Set whole body
* **Input Value**: {  \
  "first\_name": "john",  \
  "last\_name": "smith",  \
  "phone": "9898787656",  \
  "email": "<johnsmith@gmail.com>",  \
  "password": "John\@123",  \
  "re\_password": "John\@123"  \
  }
  * The input value specifies the complete request payload that should be applied to the web service request. The action configures the web service to use this body content for subsequent API execution.
* **Output Value**: N/A
* **Logical Explanation**: The **Set whole body** action reads the value from the **Input Value** column (**{**  \
  **"first\_name": "john",**  \
  **"last\_name": "smith",**  \
  **"phone": "9898787656",**  \
  **"email": "<johnsmith@gmail.com>",**  \
  **"password": "John\@123",**  \
  **"re\_password": "John\@123"**  \
  **}**) and applies it as the entire request body for the web service call.

<figure><img src="/files/5bF70nKry3O6xW6WQKjF" 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-list/set-whole-body.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.
