Post JSON Data with cURL
Posting JSON using cURL is a common task when working with APIs. This TIL will show you how to post JSON data using cURL.
curl --header "Content-Type: application/json" \
--request POST \
--data '{ "name": "xenomorpheus", "job": "supremeleader" }' \
https://reqres.in/api/users
I can recommend reqres.in for playing around and learning purposes.