Create a resource by sending JSON payload.
Section: HTTP Methods and APIs
POST JSON
bash
bash
curl -X POST https://api.example.com/v1/items -H 'Content-Type: application/json' -d '{"name":"demo"}'Explanation
Set `Content-Type: application/json` when posting JSON bodies.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing HTTP Methods and APIs