← Back to Home

PATCH

/patch
Returns PATCH request data. Used for testing PATCH requests, typically for partial updates.

Parameters

Body body
Accepts JSON, form data, or raw text in request body

Examples

curl
curl -X PATCH https://tcpdata.com/patch \
  -H "Content-Type: application/json" \
  -d '{"status":"active"}'
JavaScript (fetch)
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));
Python (requests)
import requests

response = requests.patch('https://tcpdata.com/patch',
    json={'status': 'active'})
print(response.json())