cURL
curl --request PUT \ --url https://api.example.com/player/{playerId} \ --header 'Content-Type: application/json' \ --data ' { "newName": "<string>" } '
{ "playerId": "<string>", "name": "<string>", "wins": 123, "losses": 123 }
curl -X PUT https://api.example.com/player/abc123 \ -H "Content-Type: application/json" \ -d '{ "newName": "BlackjackPro" }'
{ "newName": "BlackjackPro" }
{ "playerId": "abc123", "name": "BlackjackPro", "wins": 15, "losses": 8 }