Member since
04-10-2023
1
Post
0
Kudos Received
0
Solutions
04-11-2023
12:03 AM
if it works in the command line, you might want to make the script and just pass the variable to it? curl -X POST -H 'Content-Type:application/json' -d '{"name": "Apple AirPods", "data": {"color": "white", "generation": "3rd", "price": 135}}' https://api.restful-api.dev/objects If this works. You can make the script like: curl -X POST -H 'Content-Type:application/json' -d '{"name": "$1", "data": {"color": "$2", "generation": "$3", "price": $4}}' https://api.restful-api.dev/objects then just pass the variables in the Command Arguments: Variable1;Variable2;Variable3;Variable4 Command Path: path to the script Note that for windows it's %1, %, ... 2 and not $1, $2, ... for variables.
... View more