# \CollectionApi
All URIs are relative to *http://localhost:7878*
[**get_collection_by_id**](CollectionApi.md#get_collection_by_id) | **GET** /api/v3/collection/{id} |
[**list_collection**](CollectionApi.md#list_collection) | **GET** /api/v3/collection |
[**put_collection**](CollectionApi.md#put_collection) | **PUT** /api/v3/collection |
[**update_collection**](CollectionApi.md#update_collection) | **PUT** /api/v3/collection/{id} |
## get_collection_by_id
> models::CollectionResource get_collection_by_id(id)
### Parameters
**id** | **i32** | | [required] |
### Return type
[**models::CollectionResource**](CollectionResource.md)
### Authorization
[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: text/plain, application/json, text/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_collection
> Vec<models::CollectionResource> list_collection(tmdb_id)
### Parameters
**tmdb_id** | Option<**i32**> | | |
### Return type
[**Vec<models::CollectionResource>**](CollectionResource.md)
### Authorization
[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key)
### 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)
## put_collection
> put_collection(collection_update_resource)
### Parameters
**collection_update_resource** | Option<[**CollectionUpdateResource**](CollectionUpdateResource.md)> | | |
### Return type
(empty response body)
### Authorization
[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key)
### HTTP request headers
- **Content-Type**: application/json
- **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)
## update_collection
> models::CollectionResource update_collection(id, collection_resource)
### Parameters
**id** | **String** | | [required] |
**collection_resource** | Option<[**CollectionResource**](CollectionResource.md)> | | |
### Return type
[**models::CollectionResource**](CollectionResource.md)
### Authorization
[apikey](../README.md#apikey), [X-Api-Key](../README.md#X-Api-Key)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: text/plain, application/json, text/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)