CallfireApiClient.Api.Webhooks.WebhooksApi.Create C# (CSharp) Method

Create() public method

Create a Webhook for notification in the CallFire system. Use the webhooks API to receive notifications of important CallFire events. Select the resource to listen to, and then choose the events for that resource to receive notifications on. When an event triggers, a POST will be made to the callback URL with a payload of notification information.
in case HTTP response code is 400 - Bad request, the request was formatted improperly. in case HTTP response code is 401 - Unauthorized, API Key missing or invalid. in case HTTP response code is 403 - Forbidden, insufficient permissions. in case HTTP response code is 404 - NOT FOUND, the resource requested does not exist. in case HTTP response code is 500 - Internal Server Error. in case HTTP response code is something different from codes listed above. in case error has occurred in client.
public Create ( Webhook webhook ) : ResourceId
webhook CallfireApiClient.Api.Webhooks.Model.Webhook webhook to create
return CallfireApiClient.Api.Common.Model.ResourceId
        public ResourceId Create(Webhook webhook)
        {
            return Client.Post<ResourceId>(WEBHOOKS_PATH, webhook);
        }