Skip to content

Commit

Permalink
Update readme with new webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriLojda committed Jul 10, 2024
1 parent 41d0ad8 commit 6076aac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ This implementation also supports **tracking changes in [linked content](https:/
2. **algolia-update-webhook** is the function you want to call via a webhook from Kontent.ai to notify Algolia there's been a change to your content and that it has to be updated and how.

2. ### Create a new Webhook in Kontent.ai
The next step is [creating a new webhook in Kontent.ai](https://kontent.ai/learn/tutorials/develop-apps/integrate/webhooks#a-create-a-webhook).
The next step is [creating a new webhook in Kontent.ai](https://kontent.ai/learn/docs/webhooks/webhooks/javascript#a-create-webhooks).

Fill out the following into the webhook's **URL address** field:

{**algolia-update-webhook endpoint URL**}?appId={**algolia application id**}&index={**algolia search index name**}&slug={**codename of content's slug property**}

Subsequently, set the Kontent.ai **Delivery API triggers** to watch for _Publish_ and _Unpublish_ of your content items.
Subsequently, set the Kontent.ai **Delivery API triggers** to watch for changes in _published data_ on _content item events_.

At the end, this is an example of how your webhook might look like:

Expand Down
Binary file modified docs/webhook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6076aac

Please sign in to comment.