# OrganizationSetupApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getOrganizationSetup**](#getorganizationsetup) | **GET** /setup/organization | Get organization details|
|[**updateOrganizationSetup**](#updateorganizationsetup) | **PUT** /setup/organization | Update organization details|

# **getOrganizationSetup**
> OrganizationSetup getOrganizationSetup()


### Example

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

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

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

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


### Return type

**OrganizationSetup**

### 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** | Organization details returned. |  -  |
|**400** | A validation error occurred |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |
|**404** | Organization details 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)

# **updateOrganizationSetup**
> OrganizationSetup updateOrganizationSetup(organizationSetup)


### Example

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

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

let organizationSetup: OrganizationSetup; //The organization details to be updated.

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **organizationSetup** | **OrganizationSetup**| The organization details to be updated. | |


### Return type

**OrganizationSetup**

### 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** | Organization details returned. |  -  |
|**400** | A validation error occurred |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |
|**404** | Organization details 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)

