MCPcopy
hub / github.com/makeplane/plane / create

Method create

apps/api/plane/app/serializers/webhook.py:57–60  ·  view source on GitHub ↗
(self, validated_data)

Source from the content-addressed store, hash-verified

55 raise serializers.ValidationError({"url": "URL domain or its subdomain is not allowed."})
56
57 def create(self, validated_data):
58 url = validated_data.get("url", None)
59 self._validate_webhook_url(url)
60 return Webhook.objects.create(**validated_data)
61
62 def update(self, instance, validated_data):
63 url = validated_data.get("url", None)

Callers

nothing calls this directly

Calls 2

_validate_webhook_urlMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected