The request's PATCH parameters
PATCH
/patchResponses
JSON
{
"method": "string",
"uri": "string",
"headers": {
},
"origin": "string",
"query": {
},
"body_string": "string",
"json": null
}
PATCH
/patchSamples
cURL
curl -X PATCH https://httpbin.rs/patch
JavaScript
fetch("https://httpbin.rs/patch", { method: "PATCH" })
.then(response => response.json())
.then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://httpbin.rs/patch");
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/patch")
print(response.json())