# CollateralAssetsApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**reevaluateCollateralAssets**](#reevaluatecollateralassets) | **POST** /loans:reevaluateCollateral | Update collateral asset amounts|

# **reevaluateCollateralAssets**
> CollateralAssetsReevaluationResponse reevaluateCollateralAssets(collateralAssetFilter)


### Example

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

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

let collateralAssetFilter: CollateralAssetFilter; //The request containing the fields to filter out which loan accounts to recalculate with the background process.
let idempotencyKey: string; //Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. (optional) (default to undefined)

const { status, data } = await apiInstance.reevaluateCollateralAssets(
    collateralAssetFilter,
    idempotencyKey
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **collateralAssetFilter** | **CollateralAssetFilter**| The request containing the fields to filter out which loan accounts to recalculate with the background process. | |
| **idempotencyKey** | [**string**] | Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. | (optional) defaults to undefined|


### Return type

**CollateralAssetsReevaluationResponse**

### 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. |  -  |
|**202** | Update collateral asset amounts |  -  |
|**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)

