# NotificationSettingsApi

All URIs are relative to *http://localhost:8889/api*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getWebhookNotificationSettings**](#getwebhooknotificationsettings) | **GET** /notificationsettings/webhook | Get the webhook notification settings|
|[**updateWebhookNotificationSettings**](#updatewebhooknotificationsettings) | **PUT** /notificationsettings/webhook | Update the webhook notification settings|

# **getWebhookNotificationSettings**
> WebhookNotificationSettings getWebhookNotificationSettings()

This endpoint retrieves the current notification settings for webhooks, indicating whether they are enabled or disabled for the specific tenant.

### Example

```typescript
import {
    NotificationSettingsApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new NotificationSettingsApi(configuration);

const { status, data } = await apiInstance.getWebhookNotificationSettings();
```

### Parameters
This endpoint does not have any parameters.


### Return type

**WebhookNotificationSettings**

### Authorization

[basic](../README.md#basic)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/vnd.mambu.v2+json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**102** | Your idempotent request was already submitted and is currently being processed, try again later. |  -  |
|**200** | The webhook notification settings were successfully retrieved. |  -  |
|**400** | A validation error occurred |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |

[[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)

# **updateWebhookNotificationSettings**
> WebhookNotificationSettings updateWebhookNotificationSettings(webhookNotificationSettings)

This endpoint updates the state of the webhook notification settings to either <code>ENABLED</code> or <code>DISABLED</code>. 

### Example

```typescript
import {
    NotificationSettingsApi,
    Configuration,
    WebhookNotificationSettings
} from './api';

const configuration = new Configuration();
const apiInstance = new NotificationSettingsApi(configuration);

let webhookNotificationSettings: WebhookNotificationSettings; //Represents the webhook notification settings to be updated.

const { status, data } = await apiInstance.updateWebhookNotificationSettings(
    webhookNotificationSettings
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **webhookNotificationSettings** | **WebhookNotificationSettings**| Represents the webhook notification settings to be updated. | |


### Return type

**WebhookNotificationSettings**

### Authorization

[basic](../README.md#basic)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/vnd.mambu.v2+json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**102** | Your idempotent request was already submitted and is currently being processed, try again later. |  -  |
|**200** | The webhook notification settings were successfully updated. |  -  |
|**400** | A validation error occurred |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |

[[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)

