Cheatsheet Pages / curl Cheatsheet

How to replace a resource with curl — PUT

The whole resource at that URL gets replaced by what you send.

curl -X PUT https://api.example.com/users/1 \
  -H "Content-Type: application/json" \
  -d '{"name":"ezra","role":"senior engineer"}'
curl Cheatsheet one-page card — commands that actually work
The full one-page card — curl Cheatsheet. Get the complete cheatsheet on GitHub