On this example I am creating a simple api using Flask, to create / update and delete tasks, the data will be persisted on JSON file.
curl --location --request PUT 'http://127.0.0.1:5000/tasks?id=1' \
--header 'Content-Type: application/json' \
--data '{
"title": "bla",
"description": "bla-blup"
}'