Any data
body
curl -X POST https://tcpdata.com/anything/test -d 'sample=data'
fetch('https://tcpdata.com/anything/custom-path', {
method: 'PUT',
body: JSON.stringify({ test: 'data' })
})
.then(res => res.json())
.then(data => console.log(data));
import requests
response = requests.put('https://tcpdata.com/anything/test',
json={'sample': 'data'})
print(response.json())