Webhook
Life Cycle
| Route | Create | Read | Update | Delete |
|---|---|---|---|---|
| /admin/entities/:entity-slug/webhooks | ||||
| /admin/entities/:entity-slug/webhooks/new | ||||
| /admin/entities/:entity-slug/webhooks/:id |
Properties
| Name | Title | Type | Description |
|---|---|---|---|
| entityId * | Entity | Entity | Parent Entity. |
| action * | Action | String | Created, Updated, Deleted row events. |
| method * | Method | String | POST, PUT, or DELETE. |
| endpoint * | Endpoint | String | e.g. https://hooks.zapier.com/hooks/catch/122456/kdlsow |
| logs | Logs | EntityWebhookLog[] | Logs HTTP status and error. |
Model
model EntityWebhook {
id String @id @default(cuid())
entityId String
entity Entity @relation(fields: [entityId], references: [id], onDelete: Cascade)
action String
method String
endpoint String
logs EntityWebhookLog[]
}