You can use Pre-request Scripts to dynamically modify request parameters (Headers, Query Params, Body) before the request is sent.Modifying headers and query parameters is only possible in Pre-request Scripts. You cannot modify the request in Post-request scripts.
Query Parameters#
Add or Update Query Param#
Body Parameters#
You can modify the request body (JSON) before sending.Always ensure your script is placed after the "Variable Substitution" step if you need to read variables that were just substituted, or before if you are setting variables for substitution. For modifying the body, typically you do this before the request is sent.