# \AlbumsApi
All URIs are relative to */api*
[**add_assets_to_album**](AlbumsApi.md#add_assets_to_album) | **PUT** /albums/{id}/assets |
[**add_users_to_album**](AlbumsApi.md#add_users_to_album) | **PUT** /albums/{id}/users |
[**create_album**](AlbumsApi.md#create_album) | **POST** /albums |
[**delete_album**](AlbumsApi.md#delete_album) | **DELETE** /albums/{id} |
[**get_album_info**](AlbumsApi.md#get_album_info) | **GET** /albums/{id} |
[**get_album_statistics**](AlbumsApi.md#get_album_statistics) | **GET** /albums/statistics |
[**get_all_albums**](AlbumsApi.md#get_all_albums) | **GET** /albums |
[**remove_asset_from_album**](AlbumsApi.md#remove_asset_from_album) | **DELETE** /albums/{id}/assets |
[**remove_user_from_album**](AlbumsApi.md#remove_user_from_album) | **DELETE** /albums/{id}/user/{userId} |
[**update_album_info**](AlbumsApi.md#update_album_info) | **PATCH** /albums/{id} |
[**update_album_user**](AlbumsApi.md#update_album_user) | **PUT** /albums/{id}/user/{userId} |
## add_assets_to_album
> Vec<models::BulkIdResponseDto> add_assets_to_album(id, bulk_ids_dto, key, slug)
This endpoint requires the `albumAsset.create` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
**bulk_ids_dto** | [**BulkIdsDto**](BulkIdsDto.md) | | [required] |
**key** | Option<**String**> | | |
**slug** | Option<**String**> | | |
### Return type
[**Vec<models::BulkIdResponseDto>**](BulkIdResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)
## add_users_to_album
> models::AlbumResponseDto add_users_to_album(id, add_users_dto)
This endpoint requires the `albumUser.create` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
**add_users_dto** | [**AddUsersDto**](AddUsersDto.md) | | [required] |
### Return type
[**models::AlbumResponseDto**](AlbumResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)
## create_album
> models::AlbumResponseDto create_album(create_album_dto)
This endpoint requires the `album.create` permission.
### Parameters
**create_album_dto** | [**CreateAlbumDto**](CreateAlbumDto.md) | | [required] |
### Return type
[**models::AlbumResponseDto**](AlbumResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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_album
> delete_album(id)
This endpoint requires the `album.delete` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
### Return type
(empty response body)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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_album_info
> models::AlbumResponseDto get_album_info(id, key, slug, without_assets)
This endpoint requires the `album.read` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
**key** | Option<**String**> | | |
**slug** | Option<**String**> | | |
**without_assets** | Option<**bool**> | | |
### Return type
[**models::AlbumResponseDto**](AlbumResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)
## get_album_statistics
> models::AlbumStatisticsResponseDto get_album_statistics()
This endpoint requires the `album.statistics` permission.
### Parameters
This endpoint does not need any parameter.
### Return type
[**models::AlbumStatisticsResponseDto**](AlbumStatisticsResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)
## get_all_albums
> Vec<models::AlbumResponseDto> get_all_albums(asset_id, shared)
This endpoint requires the `album.read` permission.
### Parameters
**asset_id** | Option<**uuid::Uuid**> | Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums | |
**shared** | Option<**bool**> | | |
### Return type
[**Vec<models::AlbumResponseDto>**](AlbumResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)
## remove_asset_from_album
> Vec<models::BulkIdResponseDto> remove_asset_from_album(id, bulk_ids_dto)
This endpoint requires the `albumAsset.delete` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
**bulk_ids_dto** | [**BulkIdsDto**](BulkIdsDto.md) | | [required] |
### Return type
[**Vec<models::BulkIdResponseDto>**](BulkIdResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)
## remove_user_from_album
> remove_user_from_album(id, user_id)
This endpoint requires the `albumUser.delete` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
**user_id** | **String** | | [required] |
### Return type
(empty response body)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)
## update_album_info
> models::AlbumResponseDto update_album_info(id, update_album_dto)
This endpoint requires the `album.update` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
**update_album_dto** | [**UpdateAlbumDto**](UpdateAlbumDto.md) | | [required] |
### Return type
[**models::AlbumResponseDto**](AlbumResponseDto.md)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)
## update_album_user
> update_album_user(id, user_id, update_album_user_dto)
This endpoint requires the `albumUser.update` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
**user_id** | **String** | | [required] |
**update_album_user_dto** | [**UpdateAlbumUserDto**](UpdateAlbumUserDto.md) | | [required] |
### Return type
(empty response body)
### Authorization
[cookie](../README.md#cookie), [api_key](../README.md#api_key), [bearer](../README.md#bearer)
### 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)