Dynamic values are a great way to make your requests smarter. It’s like visual programming for API testing. Dynamic values are evaluated when request is sent. It is then replaced by the returned string. As each dynamic value gets a context object, it can use data from the entire Paw document (other requests and responses). This way you can chain requests without any need to copy and paste, filter values from responses, re-use random values from previous requests etc. You can also insert a dynamic value in the authorization header and Paw will generate your access token.
Insert a dynamic value
You can use either of the following ways to insert a dynamic value.
Right-click to see all the options
Right-click to see all the options
In the pop-up window under “Add dynamic value” you can choose a category and click on the value that you need. It will then be inserted and will ask you for input if necessary.
Start typing and use completion
Start typing and use completion
As you start typing the name of the dynamic value, Paw will suggest the auto-complete options for you. If you are not at the start of the field, use the {
to trigger the autocomplete.
Copy and paste another dynamic value
Copy and paste another dynamic value
For some dynamic values, copy a response field in JSON view
For some dynamic values, copy a response field in JSON view
Right-click on a field in response JSON body and choose the “Copy as Response Body Dynamic Value” option. Then paste the value in another field.