Returns anything passed in request data.
PATCH
/anything/*anythingResponses
JSON
{
"method": "string",
"uri": "string",
"headers": {
},
"origin": "string",
"query": {
},
"body_string": "string",
"json": null
}
PATCH
/anything/*anythingSamples
cURL
curl -X PATCH https://httpbin.rs/anything/*anything
JavaScript
fetch("https://httpbin.rs/anything/*anything", { method: "PATCH" })
.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, "PATCH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.patch("https://httpbin.rs/anything/*anything")
print(response.json())