Build a request
Build a request when you want full control from scratch, or when you are editing a captured, generated, or imported call. Set the method, URL, headers, body, parameters, and assertions, then send it or include it in a flow.
How to build from scratchHow to build from scratch
In REST API testing, choose the request path to build manually from scratch.
Pick GET, POST, PUT, PATCH, DELETE, or HEAD, then enter the full URL or path.
Set Content-Type, Authorization, Accept, and any query parameters the endpoint needs.
For POST, PUT, and PATCH, add the JSON (or other) body. GET, DELETE, and HEAD often have no body.
Expect a status such as 200, 201, or 204. Send the request, or add it to a flow and run the sequence whenever you need.
Request fieldsRequest fields
Assertions and statusAssertions and status
A request without an expected status only tells you what the server returned. An assertion tells QAlity whether that result is success for your test.
- Expect 200 for a successful GET, PUT, PATCH, or HEAD.
- Expect 201 when POST should create a resource.
- Expect 204 when DELETE should succeed with an empty body.
- Expect 400 or 401 on purpose when you are testing invalid input or missing auth.
If the actual status does not match, the request fails. That failure is stored in Execution History with the method, path, and status so you can rerun after a fix. See status codes.
Edit captured or generated requestsEdit captured or generated requests
The same editor applies after recording, AI generation, or import:
Use Send to isolate one call. Run the full flow when order matters, for example add to cart before you place the order.