Skip to content

Commit e34a05f

Browse files
committed
docs: sample response updated
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
1 parent 181bad2 commit e34a05f

File tree

1 file changed

+165
-5
lines changed

1 file changed

+165
-5
lines changed

content/docs/automation/webhook/create-webhook.mdx

Lines changed: 165 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ Use `{{ json event }}` to access the event data. Sample response is as follows
139139

140140
### Webhook response sample
141141

142-
<Tabs items={['After Insert', 'After Update', 'After Delete', "Manual Trigger"]}>
142+
#### Record trigger
143+
144+
<Tabs items={['After Insert', 'After Update', 'After Delete']}>
143145
<Tab value="After Insert">
144146

145147
```bash
@@ -229,14 +231,171 @@ Use `{{ json event }}` to access the event data. Sample response is as follows
229231
```
230232

231233
</Tab>
234+
</Tabs>
235+
236+
#### View trigger
237+
238+
<Tabs items={['After Create', 'After Update', 'After Delete']}>
239+
<Tab value="After Create">
240+
```bash
241+
{
242+
"type": "view.after.create",
243+
"id": "2f62c921-4dcc-4f37-8e3d-fd3612aaf269",
244+
"version": "v3",
245+
"data": {
246+
"table_id": "ma334932sjnwp3e",
247+
"table_name": "AllTypes",
248+
"views": [
249+
{
250+
"id": "vw45okb4letthls6",
251+
"table_id": "ma334932sjnwp3e",
252+
"title": "Grid-1",
253+
"type": "grid",
254+
"lock_type": "collaborative",
255+
"created_at": "2025-09-22 06:51:13+00:00",
256+
"updated_at": "2025-09-22 06:51:13+00:00",
257+
"description": "Grid view sample description",
258+
"created_by": "usq6o3vavwf0twzr",
259+
"fields": [
260+
{
261+
"field_id": "cc5i4wkzktyqedh",
262+
"show": true
263+
},
264+
{
265+
"field_id": "ct41ytilwlxf7u3",
266+
"show": true
267+
},
268+
{
269+
"field_id": "cmbcaa8aoxtpdr9",
270+
"show": true
271+
}
272+
],
273+
"options": {
274+
"row_height": "short"
275+
}
276+
}
277+
]
278+
}
279+
}
280+
```
281+
</Tab>
282+
<Tab value="After Update">
283+
284+
```bash
285+
{
286+
"type": "view.after.update",
287+
"id": "08faf0d1-6c02-4f66-8851-2e6405c6c76b",
288+
"version": "v3",
289+
"data": {
290+
"table_id": "ma334932sjnwp3e",
291+
"table_name": "AllTypes",
292+
"previous_views": [
293+
{
294+
"id": "vw45okb4letthls6",
295+
"table_id": "ma334932sjnwp3e",
296+
"title": "Grid-1",
297+
"type": "grid",
298+
"lock_type": "collaborative",
299+
"created_at": "2025-09-22 06:51:13+00:00",
300+
"updated_at": "2025-09-22 06:51:13+00:00",
301+
"description": "",
302+
"created_by": "usq6o3vavwf0twzr",
303+
"fields": [
304+
{
305+
"field_id": "cc5i4wkzktyqedh",
306+
"show": true
307+
},
308+
{
309+
"field_id": "ct41ytilwlxf7u3",
310+
"show": true
311+
}
312+
],
313+
"options": {
314+
"row_height": "short"
315+
}
316+
}
317+
],
318+
"views": [
319+
{
320+
"id": "vw45okb4letthls6",
321+
"table_id": "ma334932sjnwp3e",
322+
"title": "Grid-1 Renamed",
323+
"type": "grid",
324+
"lock_type": "collaborative",
325+
"created_at": "2025-09-22 06:51:13+00:00",
326+
"updated_at": "2025-09-22 07:08:29+00:00",
327+
"description": "",
328+
"created_by": "usq6o3vavwf0twzr",
329+
"fields": [
330+
{
331+
"field_id": "cc5i4wkzktyqedh",
332+
"show": true
333+
},
334+
{
335+
"field_id": "ct41ytilwlxf7u3",
336+
"show": true
337+
}
338+
],
339+
"options": {
340+
"row_height": "short"
341+
}
342+
}
343+
]
344+
}
345+
}
346+
```
347+
348+
</Tab>
349+
<Tab value="After Delete">
350+
```bash
351+
{
352+
"type": "view.after.delete",
353+
"id": "af6a6298-91e9-4642-a729-93fb0eae9d61",
354+
"version": "v3",
355+
"data": {
356+
"table_id": "ma334932sjnwp3e",
357+
"table_name": "AllTypes",
358+
"views": [
359+
{
360+
"id": "vw45okb4letthls6",
361+
"table_id": "ma334932sjnwp3e",
362+
"title": "Grid-1 Renamed",
363+
"type": "grid",
364+
"lock_type": "collaborative",
365+
"created_at": "2025-09-22 06:51:13+00:00",
366+
"updated_at": "2025-09-22 07:08:29+00:00",
367+
"description": "",
368+
"created_by": "usq6o3vavwf0twzr",
369+
"fields": [
370+
{
371+
"field_id": "cc5i4wkzktyqedh",
372+
"show": true
373+
},
374+
{
375+
"field_id": "ct41ytilwlxf7u3",
376+
"show": true
377+
}
378+
],
379+
"options": {
380+
"row_height": "short"
381+
}
382+
}
383+
]
384+
}
385+
}
386+
```
387+
</Tab>
388+
</Tabs>
232389

233-
<Tab value="Manual Trigger">
390+
#### Manual trigger
234391

392+
<Tabs items={["Manual Trigger"]}>
393+
<Tab value="Manual Trigger">
235394
```bash
236395
{
237396
"type": "records.manual.trigger",
238397
"id": "551a2010-d658-4185-a050-cf3fca56a5a9",
239-
"version": "v3",
398+
"version": "v3",
240399
"data": {
241400
"table_id": "mzo4r3zrbcph43i",
242401
"table_name": "Features",
@@ -256,11 +415,12 @@ Use `{{ json event }}` to access the event data. Sample response is as follows
256415
}
257416
}
258417
```
259-
260-
</Tab>
418+
</Tab>
261419
</Tabs>
262420

263421

422+
423+
264424
#### Discord Webhook
265425
Discord webhook can be configured to send messages to a Discord channel. Discord request body should contain content, embeds or attachments, otherwise request will fail. Below is an example of Discord webhook payload. More details can be found [here](https://birdie0.github.io/discord-webhooks-guide/discord_webhook.html)
266426

0 commit comments

Comments
 (0)