"notification":"{\"type\":\"URL\",\"payload\":{\"method\":\"POST\",\"body\":\"{{ json data }}\",\"headers\":[{}],\"parameters\":[{}],\"auth\":\"\",\"path\":\"http://example.com\"}}",
"null":null,
"operation":"insert",
"retries":0,
"retry_interval":0,
"timeout":0,
"title":"string",
"type":"string"
"retries":10,
"retry_interval":60000,
"timeout":60000,
"title":"My Webhook"
}
],
"title":"Hook Model",
"type":"object",
"properties":{
"active":{
"$ref":"#/components/schemas/Bool"
"$ref":"#/components/schemas/Bool",
"description":"Is the hook active?"
},
"async":{
"$ref":"#/components/schemas/Bool"
"$ref":"#/components/schemas/Bool",
"description":"Is the hook aysnc?"
},
"description":{
"type":"string"
"type":"string",
"description":"Hook Description",
"example":"This is my hook description"
},
"env":{
"type":"string"
"type":"string",
"example":"all",
"description":"Environment for the hook"
},
"event":{
"enum":["after","before"],
"type":"string"
"type":"string",
"description":"Event Type for the operation",
"example":"after"
},
"fk_model_id":{
"type":"string"
"type":"string",
"description":"Foreign Key to Model",
"example":"md_rsu68aqjsbyqtl"
},
"id":{
"$ref":"#/components/schemas/Id",
"description":"Unique ID"
},
"notification":{
"type":"string"
"type":"string",
"description":"Hook Notification including info such as type, payload, method, body, and etc"
},
"operation":{
"enum":["delete","insert","update"],
"type":"string"
"type":"string",
"description":"Hook Operation",
"example":"insert"
},
"retries":{
"type":"number"
"type":"number",
"description":"Retry Count",
"example":10
},
"retry_interval":{
"type":"number"
"type":"number",
"description":"Retry Interval",
"example":60000
},
"timeout":{
"type":"number"
"type":"number",
"example":60000,
"description":"Timeout"
},
"title":{
"type":"string"
"type":"string",
"description":"Hook Title",
"example":"My Webhook"
},
"type":{
"type":"string"
"type":"string",
"description":"Hook Type"
}
}
},
"HookReq":{
"description":"Model for Hook",
"x-stoplight":{
"id":"8yxb4tz9u2ahz"
},
"title":"Hook Model",
"type":"object"
"examples":[
{
"active":0,
"async":0,
"description":"This is my hook description",
"env":"all",
"event":"after",
"fk_model_id":"md_rsu68aqjsbyqtl",
"id":"string",
"notification":"{\"type\":\"URL\",\"payload\":{\"method\":\"POST\",\"body\":\"{{ json data }}\",\"headers\":[{}],\"parameters\":[{}],\"auth\":\"\",\"path\":\"http://example.com\"}}",
"null":null,
"operation":"insert",
"retries":10,
"retry_interval":60000,
"timeout":60000,
"title":"My Webhook"
}
],
"title":"Hook Request Model",
"type":"object",
"properties":{
"active":{
"$ref":"#/components/schemas/Bool",
"description":"Is the hook active?"
},
"async":{
"$ref":"#/components/schemas/Bool",
"description":"Is the hook aysnc?"
},
"description":{
"$ref":"#/components/schemas/StringOrNull",
"description":"Hook Description"
},
"env":{
"type":"string",
"example":"all",
"description":"Environment for the hook"
},
"event":{
"enum":["after","before"],
"type":"string",
"description":"Event Type for the operation",
"example":"after"
},
"fk_model_id":{
"type":"string",
"description":"Foreign Key to Model",
"example":"md_rsu68aqjsbyqtl"
},
"id":{
"$ref":"#/components/schemas/Id",
"description":"Unique ID"
},
"notification":{
"type":"string",
"description":"Hook Notification including info such as type, payload, method, body, and etc"
"notification":"{\"type\":\"URL\",\"payload\":{\"method\":\"POST\",\"body\":\"{{ json data }}\",\"headers\":[{}],\"parameters\":[{}],\"auth\":\"\",\"path\":\"http://example.com\"}}",