# Set header

This is pre-built Action located under the WebService List Element. It instructs the Avo Assure Client to set the header for the web service. The "Set header" Action is used in the Avo Assure to configure the HTTP request header.

{% hint style="info" %}
*Note: This step is part of the web service request process.*
{% endhint %}

### **Syntax**

**Input:** `Request_header`

**Output:** `N/A`&#x20;

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

### **Usecase/Example**

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

### **Scenario**

In a healthcare application, an API is used to retrieve patient records, and the request requires an authorization token in the header to ensure that only authenticated users can access the data. The "Set header" Action is used to configure the header information for the web service request, including the authorization token.

The Avo Assure involves verifying that the system correctly includes the necessary authentication token in the header when sending a GET request to retrieve patient records. The "Set header" Action will be used to add the Authorization header with the token to the request.

### Input

Header: Authorization: Bearer abc123xyz456

*(Web service endpoint URL: <https://api.healthcareapp.com/v1/patient/records>*

*HTTP Method: GET)*

### **Expected Result**

The application should send a GET request to the <https://api.healthcareapp.com/v1/patient/records> endpoint with the correct Authorization header (Authorization: Bearer abc123xyz456).

### **Output**

The Set header Action is configuring the HTTP request header as Authorization: Bearer abc123xyz456.


---

# 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-header.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.
