Updates an existing webhook (URL, events, headers, auth).
Use this endpoint to:
- Change the target URL
- Add/remove subscribed event types
- Update authentication headers
- Reactivate a suspended webhook (update it with the corrected URL)
Security
bearerAuth
Updated list of event types (replaces the current list entirely).
Example:
[ "CUSTOMER_CREATE", "PRODUCT_UPDATE", "PRODUCT_DELETE" ]
Updated custom headers (replaces entirely).
Example:
{ "X-Api-Key": "new-secret" }
- Mock serverhttps://api-doc.immo-facile.com/_mock/openapi/hooks/{hookId}
- https://v2.immo-facile.com/api/v2/sitehttps://v2.immo-facile.com/api/v2/site/hooks/{hookId}
curl -i -X PUT \
https://api-doc.immo-facile.com/_mock/openapi/hooks/42 \
-H 'Authorization: Bearer <YOUR_opaque_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://new-portail.example.com/webhook",
"origines": [
"CUSTOMER_CREATE",
"PRODUCT_UPDATE",
"PRODUCT_DELETE"
],
"headers": {
"X-Api-Key": "new-secret"
}
}'Response
{ "data": { "id": 42, "url": "https://portail.example.com/webhook", "headers": { … }, "authId": 0, "format": "string", "origines": [ … ] } }