2022-07-13 14:23:48 +02:00
# openapi.api.AlbumApi
## Load the API package
```dart
import 'package:openapi/api.dart';
```
All URIs are relative to */api*
Method | HTTP request | Description
------------- | ------------- | -------------
2023-05-24 16:30:13 +02:00
[**addAssetsToAlbum** ](AlbumApi.md#addassetstoalbum ) | **PUT** /album/{id}/assets |
[**addUsersToAlbum** ](AlbumApi.md#adduserstoalbum ) | **PUT** /album/{id}/users |
2022-07-13 14:23:48 +02:00
[**createAlbum** ](AlbumApi.md#createalbum ) | **POST** /album |
2023-05-24 16:30:13 +02:00
[**deleteAlbum** ](AlbumApi.md#deletealbum ) | **DELETE** /album/{id} |
2023-06-16 17:48:48 +02:00
[**getAlbumCount** ](AlbumApi.md#getalbumcount ) | **GET** /album/count |
2023-05-24 16:30:13 +02:00
[**getAlbumInfo** ](AlbumApi.md#getalbuminfo ) | **GET** /album/{id} |
2022-07-13 14:23:48 +02:00
[**getAllAlbums** ](AlbumApi.md#getallalbums ) | **GET** /album |
2023-05-24 16:30:13 +02:00
[**removeAssetFromAlbum** ](AlbumApi.md#removeassetfromalbum ) | **DELETE** /album/{id}/assets |
[**removeUserFromAlbum** ](AlbumApi.md#removeuserfromalbum ) | **DELETE** /album/{id}/user/{userId} |
[**updateAlbumInfo** ](AlbumApi.md#updatealbuminfo ) | **PATCH** /album/{id} |
2022-07-13 14:23:48 +02:00
# **addAssetsToAlbum**
2023-08-02 03:29:14 +02:00
> List<BulkIdResponseDto> addAssetsToAlbum(id, bulkIdsDto, key)
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2022-07-13 14:23:48 +02:00
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
2023-05-24 16:30:13 +02:00
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
2023-08-02 03:29:14 +02:00
final bulkIdsDto = BulkIdsDto(); // BulkIdsDto |
2023-02-24 18:01:10 +02:00
final key = key_example; // String |
2022-07-13 14:23:48 +02:00
try {
2023-08-02 03:29:14 +02:00
final result = api_instance.addAssetsToAlbum(id, bulkIdsDto, key);
2022-07-13 14:23:48 +02:00
print(result);
} catch (e) {
print('Exception when calling AlbumApi->addAssetsToAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
2023-05-24 16:30:13 +02:00
**id** | **String** | |
2023-08-02 03:29:14 +02:00
**bulkIdsDto** | [**BulkIdsDto** ](BulkIdsDto.md )| |
2023-02-24 18:01:10 +02:00
**key** | **String** | | [optional]
2022-07-13 14:23:48 +02:00
### Return type
2023-08-02 03:29:14 +02:00
[**List<BulkIdResponseDto>** ](BulkIdResponseDto.md )
2022-07-13 14:23:48 +02:00
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2022-07-13 14:23:48 +02:00
### 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)
# **addUsersToAlbum**
2023-05-24 16:30:13 +02:00
> AlbumResponseDto addUsersToAlbum(id, addUsersDto)
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2022-07-13 14:23:48 +02:00
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
2023-05-24 16:30:13 +02:00
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
2022-07-13 14:23:48 +02:00
final addUsersDto = AddUsersDto(); // AddUsersDto |
try {
2023-05-24 16:30:13 +02:00
final result = api_instance.addUsersToAlbum(id, addUsersDto);
2022-07-13 14:23:48 +02:00
print(result);
} catch (e) {
print('Exception when calling AlbumApi->addUsersToAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
2023-05-24 16:30:13 +02:00
**id** | **String** | |
2022-07-13 14:23:48 +02:00
**addUsersDto** | [**AddUsersDto** ](AddUsersDto.md )| |
### Return type
[**AlbumResponseDto** ](AlbumResponseDto.md )
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2022-07-13 14:23:48 +02:00
### 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)
# **createAlbum**
> AlbumResponseDto createAlbum(createAlbumDto)
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2022-07-13 14:23:48 +02:00
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final createAlbumDto = CreateAlbumDto(); // CreateAlbumDto |
try {
final result = api_instance.createAlbum(createAlbumDto);
print(result);
} catch (e) {
print('Exception when calling AlbumApi->createAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**createAlbumDto** | [**CreateAlbumDto** ](CreateAlbumDto.md )| |
### Return type
[**AlbumResponseDto** ](AlbumResponseDto.md )
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2022-07-13 14:23:48 +02:00
### 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)
2023-01-09 22:16:08 +02:00
2022-07-13 14:23:48 +02:00
# **deleteAlbum**
2023-05-24 16:30:13 +02:00
> deleteAlbum(id)
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2022-07-13 14:23:48 +02:00
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
2023-05-24 16:30:13 +02:00
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
2022-07-13 14:23:48 +02:00
try {
2023-05-24 16:30:13 +02:00
api_instance.deleteAlbum(id);
2022-07-13 14:23:48 +02:00
} catch (e) {
print('Exception when calling AlbumApi->deleteAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
2023-05-24 16:30:13 +02:00
**id** | **String** | |
2022-07-13 14:23:48 +02:00
### Return type
void (empty response body)
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2022-07-13 14:23:48 +02:00
### 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)
2022-10-30 19:38:04 +02:00
2023-06-16 17:48:48 +02:00
# **getAlbumCount**
> AlbumCountResponseDto getAlbumCount()
2022-09-07 22:16:18 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2022-09-07 22:16:18 +02:00
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
try {
2023-06-16 17:48:48 +02:00
final result = api_instance.getAlbumCount();
2022-09-07 22:16:18 +02:00
print(result);
} catch (e) {
2023-06-16 17:48:48 +02:00
print('Exception when calling AlbumApi->getAlbumCount: $e\n');
2022-09-07 22:16:18 +02:00
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**AlbumCountResponseDto** ](AlbumCountResponseDto.md )
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2022-09-07 22:16:18 +02:00
### 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)
2022-07-13 14:23:48 +02:00
# **getAlbumInfo**
2023-05-24 16:30:13 +02:00
> AlbumResponseDto getAlbumInfo(id, key)
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2022-07-13 14:23:48 +02:00
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
2023-05-24 16:30:13 +02:00
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
2023-02-24 18:01:10 +02:00
final key = key_example; // String |
2022-07-13 14:23:48 +02:00
try {
2023-05-24 16:30:13 +02:00
final result = api_instance.getAlbumInfo(id, key);
2022-07-13 14:23:48 +02:00
print(result);
} catch (e) {
print('Exception when calling AlbumApi->getAlbumInfo: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
2023-05-24 16:30:13 +02:00
**id** | **String** | |
2023-02-24 18:01:10 +02:00
**key** | **String** | | [optional]
2022-07-13 14:23:48 +02:00
### Return type
[**AlbumResponseDto** ](AlbumResponseDto.md )
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2022-07-13 14:23:48 +02:00
### 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)
# **getAllAlbums**
2022-09-05 15:50:20 +02:00
> List<AlbumResponseDto> getAllAlbums(shared, assetId)
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2022-07-13 14:23:48 +02:00
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
final shared = true; // bool |
2023-03-26 04:46:48 +02:00
final assetId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
2022-07-13 14:23:48 +02:00
try {
2022-09-05 15:50:20 +02:00
final result = api_instance.getAllAlbums(shared, assetId);
2022-07-13 14:23:48 +02:00
print(result);
} catch (e) {
print('Exception when calling AlbumApi->getAllAlbums: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**shared** | **bool** | | [optional]
2022-09-05 15:50:20 +02:00
**assetId** | **String** | Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums | [optional]
2022-07-13 14:23:48 +02:00
### Return type
[**List<AlbumResponseDto>** ](AlbumResponseDto.md )
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2022-07-13 14:23:48 +02:00
### 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)
# **removeAssetFromAlbum**
2023-08-02 03:29:14 +02:00
> List<BulkIdResponseDto> removeAssetFromAlbum(id, bulkIdsDto)
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2022-07-13 14:23:48 +02:00
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
2023-05-24 16:30:13 +02:00
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
2023-08-02 03:29:14 +02:00
final bulkIdsDto = BulkIdsDto(); // BulkIdsDto |
2022-07-13 14:23:48 +02:00
try {
2023-08-02 03:29:14 +02:00
final result = api_instance.removeAssetFromAlbum(id, bulkIdsDto);
2022-07-24 06:23:14 +02:00
print(result);
2022-07-13 14:23:48 +02:00
} catch (e) {
print('Exception when calling AlbumApi->removeAssetFromAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
2023-05-24 16:30:13 +02:00
**id** | **String** | |
2023-08-02 03:29:14 +02:00
**bulkIdsDto** | [**BulkIdsDto** ](BulkIdsDto.md )| |
2022-07-13 14:23:48 +02:00
### Return type
2023-08-02 03:29:14 +02:00
[**List<BulkIdResponseDto>** ](BulkIdResponseDto.md )
2022-07-13 14:23:48 +02:00
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2022-07-13 14:23:48 +02:00
### HTTP request headers
- **Content-Type**: application/json
2022-07-24 06:23:14 +02:00
- **Accept**: application/json
2022-07-13 14:23:48 +02:00
[[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)
# **removeUserFromAlbum**
2023-05-24 16:30:13 +02:00
> removeUserFromAlbum(id, userId)
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2022-07-13 14:23:48 +02:00
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
2023-05-24 16:30:13 +02:00
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
2022-07-13 14:23:48 +02:00
final userId = userId_example; // String |
try {
2023-05-24 16:30:13 +02:00
api_instance.removeUserFromAlbum(id, userId);
2022-07-13 14:23:48 +02:00
} catch (e) {
print('Exception when calling AlbumApi->removeUserFromAlbum: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
2023-05-24 16:30:13 +02:00
**id** | **String** | |
2022-07-13 14:23:48 +02:00
**userId** | **String** | |
### Return type
void (empty response body)
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2022-07-13 14:23:48 +02:00
### 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)
# **updateAlbumInfo**
2023-05-24 16:30:13 +02:00
> AlbumResponseDto updateAlbumInfo(id, updateAlbumDto)
2022-07-13 14:23:48 +02:00
### Example
```dart
import 'package:openapi/api.dart';
2023-04-09 04:26:09 +02:00
// TODO Configure API key authorization: cookie
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('cookie').apiKeyPrefix = 'Bearer';
2023-05-04 18:41:29 +02:00
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication< ApiKeyAuth > ('api_key').apiKeyPrefix = 'Bearer';
2022-07-13 14:23:48 +02:00
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication< HttpBearerAuth > ('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = AlbumApi();
2023-05-24 16:30:13 +02:00
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String |
2022-07-13 14:23:48 +02:00
final updateAlbumDto = UpdateAlbumDto(); // UpdateAlbumDto |
try {
2023-05-24 16:30:13 +02:00
final result = api_instance.updateAlbumInfo(id, updateAlbumDto);
2022-07-13 14:23:48 +02:00
print(result);
} catch (e) {
print('Exception when calling AlbumApi->updateAlbumInfo: $e\n');
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
2023-05-24 16:30:13 +02:00
**id** | **String** | |
2022-07-13 14:23:48 +02:00
**updateAlbumDto** | [**UpdateAlbumDto** ](UpdateAlbumDto.md )| |
### Return type
[**AlbumResponseDto** ](AlbumResponseDto.md )
### Authorization
2023-05-04 18:41:29 +02:00
[cookie ](../README.md#cookie ), [api_key ](../README.md#api_key ), [bearer ](../README.md#bearer )
2022-07-13 14:23:48 +02:00
### 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)