def create(self, name, targetUrl, resource, event,<EOL>filter=None, secret=None, **request_parameters):
check_type(name, basestring, may_be_none=False)<EOL>check_type(targetUrl, basestring, may_be_none=False)<EOL>check_type(resource, basestring, may_be_none=False)<EOL>check_type(event, basestring, may_be_none=False)<EOL>check_type(filter, basestring)<EOL>check_type(secret, basestring)<EOL>post_data = dict_from_items_with_values(<EOL>request_parameters,<EOL>name=name,<EOL>targetUrl=targetUrl,<EOL>resource=resource,<EOL>event=event,<EOL>filter=filter,<EOL>secret=secret,<EOL>)<EOL>json_data = self._session.post(API_ENDPOINT, json=post_data)<EOL>return self._object_factory(OBJECT_TYPE, json_data)<EOL>
Create a webhook.

        Args:
            name(basestring): A user-friendly name for this webhook.
            targetUrl(basestring): The URL that receives POST requests for
                each event.
            resource(basestring): The resource type for the webhook.
            event(basestring): The event type for the webhook.
            filter(basestring): The filter that defines the webhook scope.
            secret(basestring): The secret used to generate payload signature.
            **request_parameters: Additional request parameters (provides
                support for parameters that may be added in the future).

        Returns:
            Webhook: A Webhook object with the details of the created webhook.

        Raises:
            TypeError: If the parameter types are incorrect.
            ApiError: If the Webex Teams cloud returns an error.