# \CurationApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**approve_package**](CurationApi.md#approve_package) | **POST** /api/v1/curation/packages/{id}/approve | 
[**block_package**](CurationApi.md#block_package) | **POST** /api/v1/curation/packages/{id}/block | 
[**bulk_approve**](CurationApi.md#bulk_approve) | **POST** /api/v1/curation/packages/bulk-approve | 
[**bulk_block**](CurationApi.md#bulk_block) | **POST** /api/v1/curation/packages/bulk-block | 
[**create_curation_rule**](CurationApi.md#create_curation_rule) | **POST** /api/v1/curation/rules | 
[**delete_curation_rule**](CurationApi.md#delete_curation_rule) | **DELETE** /api/v1/curation/rules/{id} | 
[**get_curation_package**](CurationApi.md#get_curation_package) | **GET** /api/v1/curation/packages/{id} | 
[**list_curation_packages**](CurationApi.md#list_curation_packages) | **GET** /api/v1/curation/packages | 
[**list_curation_rules**](CurationApi.md#list_curation_rules) | **GET** /api/v1/curation/rules | 
[**re_evaluate**](CurationApi.md#re_evaluate) | **POST** /api/v1/curation/packages/re-evaluate | 
[**stats**](CurationApi.md#stats) | **GET** /api/v1/curation/stats | 
[**update_curation_rule**](CurationApi.md#update_curation_rule) | **PUT** /api/v1/curation/rules/{id} | 



## approve_package

> models::PackageResponse approve_package(id)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Package ID | [required] |

### Return type

[**models::PackageResponse**](PackageResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## block_package

> models::PackageResponse block_package(id)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Package ID | [required] |

### Return type

[**models::PackageResponse**](PackageResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## bulk_approve

> i64 bulk_approve(bulk_status_request)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**bulk_status_request** | [**BulkStatusRequest**](BulkStatusRequest.md) |  | [required] |

### Return type

**i64**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: text/plain

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


## bulk_block

> i64 bulk_block(bulk_status_request)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**bulk_status_request** | [**BulkStatusRequest**](BulkStatusRequest.md) |  | [required] |

### Return type

**i64**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: text/plain

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


## create_curation_rule

> models::RuleResponse create_curation_rule(create_rule_request)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_rule_request** | [**CreateRuleRequest**](CreateRuleRequest.md) |  | [required] |

### Return type

[**models::RuleResponse**](RuleResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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

> delete_curation_rule(id)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Rule ID | [required] |

### Return type

 (empty response body)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

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

> models::PackageResponse get_curation_package(id)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Package ID | [required] |

### Return type

[**models::PackageResponse**](PackageResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## list_curation_packages

> Vec<models::PackageResponse> list_curation_packages(staging_repo_id, status, limit, offset)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**staging_repo_id** | **uuid::Uuid** |  | [required] |
**status** | Option<**String**> |  |  |
**limit** | Option<**i64**> |  |  |
**offset** | Option<**i64**> |  |  |

### Return type

[**Vec<models::PackageResponse>**](PackageResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## list_curation_rules

> Vec<models::RuleResponse> list_curation_rules(staging_repo_id)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**staging_repo_id** | Option<**uuid::Uuid**> | Filter by staging repo |  |

### Return type

[**Vec<models::RuleResponse>**](RuleResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## re_evaluate

> i64 re_evaluate(re_evaluate_request)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**re_evaluate_request** | [**ReEvaluateRequest**](ReEvaluateRequest.md) |  | [required] |

### Return type

**i64**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: text/plain

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


## stats

> models::StatsResponse stats(staging_repo_id)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**staging_repo_id** | **uuid::Uuid** |  | [required] |

### Return type

[**models::StatsResponse**](StatsResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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

> models::RuleResponse update_curation_rule(id, update_rule_request)


### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Rule ID | [required] |
**update_rule_request** | [**UpdateRuleRequest**](UpdateRuleRequest.md) |  | [required] |

### Return type

[**models::RuleResponse**](RuleResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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

