import{r as s,p as i,q as r,w as a,z as e,R as l}from"./vendor.8ed37afc.js";const h=e("div",{class:"markdown-body"},[e("blockquote",null,[e("p",null,[l("Webhooks are configured within the App (no code required) and send HTTP requests when a specific event is triggered. "),e("a",{href:"https://en.wikipedia.org/wiki/Webhook",target:"_blank",rel:"noopener noreferrer"},"Learn more about Webhooks"),l(".")])]),e("h2",{id:"creating-webhooks"},[l("Creating Webhooks "),e("a",{class:"header-anchor",href:"#creating-webhooks"},"#")]),e("ol",null,[e("li",null,[l("Navigate to "),e("strong",null,"Settings > Webhooks")]),e("li",null,[l("Click the "),e("strong",null,"Create Webhook"),l(" action button in the header")]),e("li",null,[l("Complete the "),e("strong",null,"other webhook form fields"),l(" outlined below")])]),e("ul",null,[e("li",null,[e("strong",null,"Name"),l(" \u2014 A name to help remember this webhooks purpose")]),e("li",null,[e("strong",null,"Method"),l(" \u2014 Send as either a HTTP "),e("code",null,"GET"),l(" or "),e("code",null,"POST"),l(" request")]),e("li",null,[e("strong",null,"URL"),l(" \u2014 The URL to send the request to")]),e("li",null,[e("strong",null,"Status"),l(" \u2014 Whether the webhook is active (enabled) or inactive (disabled)")]),e("li",null,[e("strong",null,"Data"),l(" \u2014 Whether the event\u2019s data should be sent along with the request")]),e("li",null,[e("strong",null,"Request Headers"),l(" \u2014 Custom headers that will be added to the webhook request")]),e("li",null,[e("strong",null,"Trigger Actions"),l(" \u2014 The specific actions that will trigger the event")]),e("li",null,[e("strong",null,"Trigger Collections"),l(" \u2014 The specific collections for which the above actions will trigger events")])]),e("h2",{id:"disabling-webhooks"},[l("Disabling Webhooks "),e("a",{class:"header-anchor",href:"#disabling-webhooks"},"#")]),e("ol",null,[e("li",null,[l("Navigate to "),e("strong",null,"Settings > Webhooks > [Webhook]")]),e("li",null,[l("Set the "),e("strong",null,"status field to inactive")])]),e("h2",{id:"deleting-webhooks"},[l("Deleting Webhooks "),e("a",{class:"header-anchor",href:"#deleting-webhooks"},"#")]),e("ol",null,[e("li",null,[l("Navigate to "),e("strong",null,"Settings > Webhooks > [Webhook]")]),e("li",null,[l("Click the red "),e("strong",null,"Delete Webhook"),l(" action button in the header")]),e("li",null,[l("Confirm this decision by clicking "),e("strong",null,"Delete"),l(" in the dialog")])]),e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Irreversible Change"),e("p",null,"This action is permanent and can not be undone. Please proceed with caution.")])],-1),b={setup(u,{expose:o}){const t={title:"Webhooks",modularExtension:!1};return o({frontmatter:t}),(c,d)=>{const n=s("DocsWrapper");return i(),r(n,{frontmatter:t},{default:a(()=>[h]),_:1})}}};export{b as default};
