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"}'
