curl and jq 8 · Making requests
POST a JSON file
Send the contents of a file as the request body.
curl -X POST https://api.example.com/users -H "Content-Type: application/json" -d @user.json
Official curl and jq 8 documentation
curl and jq 8 · Making requests
Send the contents of a file as the request body.
curl -X POST https://api.example.com/users -H "Content-Type: application/json" -d @user.json
Official curl and jq 8 documentation
Was this page helpful?