Set whole body
Last updated
Last updated
The Set whole body Action in the Avo Assure is found under the WebService List Element. It instructs the Avo Assure Client to set the body for the WebService.
Input: <Entire Body Content>
Output: N/A
Note: To use this Action, it's important that the header is set in the previous steps.
User is testing an API that creates a new user in a system. The web service requires a request body containing user details (e.g., name, email, and UserID) to process the request. The body of the request is set using a predefined template stored in the system.
{"id": 1, "email": "george.bluth@reqres.in", "Balance":120, "first_name": "George", "last_name": "Bluth", "avatar": "https://reqres.in/img/faces/1-image.jpg"}
The action should set the whole body with a status code 200 OK.[PK1] [AB2]
The Set whole body Action sets the whole body in API and responds with a status code 200 OK.