Set header
This is a pre-built Action located under the WebService List Element. The functionality of this Action in Avo Assure is to set a request header for the web service request. This ensures that necessary HTTP headers (such as content type, authorization, etc.) are included during the API call.
Syntax
Input Value: <Request_header>
<Request_header> (Required)
Provide the request header.
Output Value: N/A
N/A
Not Applicable
Example: Setting a Request Header for an API Call
In this example, we are explaining how to set a request header for an API call during API testing.
Action Set Header
Input Value: Authorization: Bearer HjvlM345ndr34ndng467ndvfdGbshebfgt6dbfjfbgfxkloo89
The input value specifies the request header key and its corresponding value that should be applied to the API request. The header is used to pass authentication or additional request information during API execution.
Output Value: N/A
Logical Explanation: The Set header action reads the value from the Input Value column (Authorization: Bearer HjvlM345ndr34ndng467ndvfdGbshebfgt6dbfjfbgfxkloo89) and sets the specified request header for the API call. The configured header is included in the web service request during API execution.

Last updated