Skip to content

EspoCRM – Open Source CRM Application

webhook use url type

Yurii4a60d17936d0
diff --git a/application/Espo/Resources/metadata/entityDefs/Webhook.json b/application/Espo/Resources/metadata/entityDefs/Webhook.json
index afe8a2f325..09a6bb1463 100644
--- a/application/Espo/Resources/metadata/entityDefs/Webhook.json
+++ b/application/Espo/Resources/metadata/entityDefs/Webhook.json
@@ -7,9 +7,10 @@
"view": "views/webhook/fields/event"
},
"url": {
- "type": "varchar",
+ "type": "url",
"maxLength": 512,
"required": true,
+ "protocolRequired": true,
"copyToClipboard": true,
"validatorClassNameList": [
"Espo\\Classes\\FieldValidators\\Webhook\\Url\\NotInternal"