Skip to content

Commit 45576db

Browse files
Merge branch 'EXP-93-webhooks-route' of github.com:meilisearch/documentation into EXP-93-webhooks-route
2 parents d9c4124 + 4e201e5 commit 45576db

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<CodeGroup>
2+
3+
```javascript JS
4+
client.deleteWebhook(WEBHOOK_UUID)
5+
```
6+
</CodeGroup>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<CodeGroup>
2+
3+
```javascript JS
4+
client.getWebhooks()
5+
```
6+
</CodeGroup>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<CodeGroup>
2+
3+
```javascript JS
4+
client.getWebhook(WEBHOOK_UUID)
5+
```
6+
</CodeGroup>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<CodeGroup>
2+
3+
```javascript JS
4+
client.updateWebhook(WEBHOOK_UUID, {
5+
headers: {
6+
referer: null
7+
}
8+
})
9+
```
10+
</CodeGroup>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<CodeGroup>
2+
3+
```javascript JS
4+
client.createWebhook({
5+
url: 'WEBHOOK_TARGET_URL',
6+
headers: {
7+
authorization: 'SECURITY_KEY',
8+
referer: 'https://example.com'
9+
}
10+
})
11+
```
12+
</CodeGroup>

0 commit comments

Comments
 (0)