← Back to Home

PUT

/put
Returns PUT request data. Used for testing PUT requests, typically for updating resources.

Parameters

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

Examples

curl
curl -X PUT https://tcpdata.com/put \
  -H "Content-Type: application/json" \
  -d '{"id":123,"status":"updated"}'
JavaScript (fetch)
fetch('https://tcpdata.com/put', {
  method: 'PUT',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ id: 123, status: 'updated' })
})
  .then(res => res.json())
  .then(data => console.log(data));
Python (requests)
import requests

response = requests.put('https://tcpdata.com/put',
    json={'id': 123, 'status': 'updated'})
print(response.json())