Body
body
curl -X PATCH https://tcpdata.com/patch \
-H "Content-Type: application/json" \
-d '{"status":"active"}'
fetch('https://tcpdata.com/patch', {
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ status: 'active' })
})
.then(res => res.json())
.then(data => console.log(data));
import requests
response = requests.patch('https://tcpdata.com/patch',
json={'status': 'active'})
print(response.json())