HF RL Explorer

Task: Using curl POST with Variables Defined in Bash Script

Task: Using curl POST with Variables Defined in Bash Script: a task in Terminal-Lego-15k (Harbor dataset). Write a bash script that correctly constructs and executes a curl POST request with JSON data, where the JSON values are populated from bash variables. The script must handle quoting…

The task

Write a bash script that correctly constructs and executes a `curl` POST request with JSON data, where the JSON values are populated from bash variables. The script must handle quoting correctly so that the JSON payload is valid and the curl command executes without errors.

Part of PrimeIntellect/Terminal-Lego-15k.