2021-12-13 02:02:08 +08:00
|
|
|
<div component="code-highlighter" class="card content-wrap auto-height">
|
|
|
|
<h2 class="list-heading">{{ trans('settings.webhooks_format_example') }}</h2>
|
|
|
|
<p>{{ trans('settings.webhooks_format_example_desc') }}</p>
|
|
|
|
<pre><code class="language-json">{
|
|
|
|
"event": "page_update",
|
|
|
|
"text": "Benny updated page \"My wonderful updated page\"",
|
|
|
|
"triggered_at": "2021-12-11T22:25:10.000000Z",
|
|
|
|
"triggered_by": {
|
|
|
|
"id": 1,
|
|
|
|
"name": "Benny",
|
|
|
|
"slug": "benny"
|
|
|
|
},
|
|
|
|
"triggered_by_profile_url": "https://bookstack.local/user/benny",
|
|
|
|
"webhook_id": 2,
|
|
|
|
"webhook_name": "My page update webhook",
|
|
|
|
"url": "https://bookstack.local/books/my-awesome-book/page/my-wonderful-updated-page",
|
|
|
|
"related_item": {
|
|
|
|
"id": 2432,
|
|
|
|
"book_id": 13,
|
|
|
|
"chapter_id": 554,
|
|
|
|
"name": "My wonderful updated page",
|
|
|
|
"slug": "my-wonderful-updated-page",
|
|
|
|
"priority": 2,
|
|
|
|
"created_at": "2021-12-11T21:53:24.000000Z",
|
|
|
|
"updated_at": "2021-12-11T22:25:10.000000Z",
|
2022-03-27 00:44:34 +08:00
|
|
|
"created_by": {
|
|
|
|
"id": 1,
|
|
|
|
"name": "Benny",
|
|
|
|
"slug": "benny"
|
|
|
|
},
|
|
|
|
"updated_by": {
|
|
|
|
"id": 1,
|
|
|
|
"name": "Benny",
|
|
|
|
"slug": "benny"
|
|
|
|
},
|
2021-12-13 02:02:08 +08:00
|
|
|
"draft": false,
|
|
|
|
"revision_count": 9,
|
|
|
|
"template": false,
|
2022-03-27 00:44:34 +08:00
|
|
|
"owned_by": {
|
|
|
|
"id": 1,
|
|
|
|
"name": "Benny",
|
|
|
|
"slug": "benny"
|
|
|
|
},
|
|
|
|
"current_revision": {
|
|
|
|
"id": 597,
|
|
|
|
"page_id": 2598,
|
|
|
|
"name": "My wonderful updated page",
|
|
|
|
"created_by": 1,
|
|
|
|
"created_at": "2021-12-11T21:53:24.000000Z",
|
|
|
|
"updated_at": "2021-12-11T21:53:24.000000Z",
|
|
|
|
"slug": "my-wonderful-updated-page",
|
|
|
|
"book_slug": "my-awesome-book",
|
|
|
|
"type": "version",
|
|
|
|
"summary": "Updated the title and fixed some spelling",
|
|
|
|
"revision_number": 2
|
|
|
|
}
|
2021-12-13 02:02:08 +08:00
|
|
|
}
|
|
|
|
}</code></pre>
|
|
|
|
</div>
|