REQUEST
curl -X PATCH https://api.read.entrfy.com/v1/webhook-endpoints/whk_00000000000000000000000000 \
-H "Authorization: Bearer er_test_ORNEK0000000000000000000000" \
-H "Content-Type: application/json" \
-d '{
"url": "https://hooks.ornek-musteri.example/entrfy",
"events": [
"document.completed"
],
"status": "active"
}'
const res = await fetch('https://api.read.entrfy.com/v1/webhook-endpoints/whk_00000000000000000000000000', {
method: 'PATCH',
headers: {
Authorization: 'Bearer er_test_ORNEK0000000000000000000000',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"url": "https://hooks.ornek-musteri.example/entrfy",
"events": [
"document.completed"
],
"status": "active"
}),
});
console.log(await res.json());
import requests
res = requests.patch(
"https://api.read.entrfy.com/v1/webhook-endpoints/whk_00000000000000000000000000",
headers={"Authorization": "Bearer er_test_ORNEK0000000000000000000000", "Content-Type": "application/json"},
json={
"url": "https://hooks.ornek-musteri.example/entrfy",
"events": [
"document.completed",
],
"status": "active",
},
)
print(res.json())