How to do api testing with dynamic values

Hi everyone,
I have a problem with api testing where we post the json,
so when we post the json we want to change some attributes, but in eggplant json will be hardcoded and can’t be changed.
How to change the specific attributes automatically in the json after every automation run in eggplant.
Any help will be appreciated.

Thanks in advance!

You can use SuiteVariables to dynamically enter values in the JSON body of the API.

In your script you can enter something like

set the suitevariables.DynamicValue to “12345”

and then in the JSON body of the API test:

“fields”: {
“project”: {
“id”: “[[DynamicValue]]”