Endpoint for updating webhooks. Webhook will be invoked as POST http request on provided targetUrl whenever specific event occurs. Specific events and their payloads are described in WEBHOOKS section.
PATCH
/advertising/v1.0/webhooks/{webhookId}
curl \
--request PATCH 'http://apis.public-staging.reas.cz/advertising/v1.0/webhooks/{webhookId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"event":"inquiry_created","configuration":{"targetUrl":"https://example.com/hooks","headers":{"Authorization":"Token 95abe511ff"}}}'
Request examples
{
"event": "inquiry_created",
"configuration": {
"targetUrl": "https://example.com/hooks",
"headers": {
"Authorization": "Token 95abe511ff"
}
}
}
Response examples (200)
{
"success": true,
"data": {
"id": "string",
"event": "inquiry_created",
"configuration": {
"targetUrl": "https://example.com/hooks",
"headers": {
"Authorization": "Token 95abe511ff"
}
}
}
}