# casdoor\WebhookApi All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**add_webhook**](WebhookApi.md#add_webhook) | **POST** /api/add-webhook | [**delete_webhook**](WebhookApi.md#delete_webhook) | **POST** /api/delete-webhook | [**get_webhook**](WebhookApi.md#get_webhook) | **GET** /api/get-webhook | [**get_webhooks**](WebhookApi.md#get_webhooks) | **GET** /api/get-webhooks | [**update_webhook**](WebhookApi.md#update_webhook) | **POST** /api/update-webhook | ## add_webhook > models::ControllersResponse add_webhook(body) add webhook ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **body** | [**Webhook**](Webhook.md) | The details of the webhook | [required] | ### Return type [**models::ControllersResponse**](controllers.Response.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## delete_webhook > models::ControllersResponse delete_webhook(body) delete webhook ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **body** | [**Webhook**](Webhook.md) | The details of the webhook | [required] | ### Return type [**models::ControllersResponse**](controllers.Response.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_webhook > models::Webhook get_webhook(id) get webhook ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **String** | The id ( owner/name ) of the webhook | [required] |[default to built-in/admin] ### Return type [**models::Webhook**](object.Webhook.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## get_webhooks > Vec get_webhooks(owner) get webhooks ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **owner** | **String** | The owner of webhooks | [required] |[default to built-in/admin] ### Return type [**Vec**](object.Webhook.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## update_webhook > models::ControllersResponse update_webhook(id, body) update webhook ### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **String** | The id ( owner/name ) of the webhook | [required] |[default to built-in/admin] **body** | [**Webhook**](Webhook.md) | The details of the webhook | [required] | ### Return type [**models::ControllersResponse**](controllers.Response.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: */* [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)