Skip to content

Returns anything passed in request data.

PUT
/anything/*anything

Responses

JSON
{
"method": "string",
"uri": "string",
"headers": {
},
"origin": "string",
"query": {
},
"body_string": "string",
"json": null
}

Samples

cURL
curl -X PUT https://httpbin.rs/anything/*anything
JavaScript
fetch("https://httpbin.rs/anything/*anything", { method: "PUT" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://httpbin.rs/anything/*anything");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.put("https://httpbin.rs/anything/*anything")
print(response.json())
Powered by VitePress OpenAPI