# NonWorkingDaysApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getNonWorkingDays**](#getnonworkingdays) | **GET** /organization/holidays/nonworkingdays | Get non-working days|
|[**updateNonWorkingDays**](#updatenonworkingdays) | **PUT** /organization/holidays/nonworkingdays | Update non-working days|

# **getNonWorkingDays**
> NonWorkingDays getNonWorkingDays()


### Example

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

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

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

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


### Return type

**NonWorkingDays**

### 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 |
|-------------|-------------|------------------|
|**200** | Non-working days returned. |  -  |
|**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)

# **updateNonWorkingDays**
> NonWorkingDays updateNonWorkingDays(nonWorkingDays)


### Example

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

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

let nonWorkingDays: NonWorkingDays; //Non-working days to be updated.

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **nonWorkingDays** | **NonWorkingDays**| Non-working days to be updated. | |


### Return type

**NonWorkingDays**

### 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 |
|-------------|-------------|------------------|
|**200** | Non-working days updated. |  -  |
|**400** | A validation error occurred |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |
|**404** | Non-working days not found. |  -  |

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

