# \NotificationsApi
All URIs are relative to */api*
[**delete_notification**](NotificationsApi.md#delete_notification) | **DELETE** /notifications/{id} |
[**delete_notifications**](NotificationsApi.md#delete_notifications) | **DELETE** /notifications |
[**get_notification**](NotificationsApi.md#get_notification) | **GET** /notifications/{id} |
[**get_notifications**](NotificationsApi.md#get_notifications) | **GET** /notifications |
[**update_notification**](NotificationsApi.md#update_notification) | **PUT** /notifications/{id} |
[**update_notifications**](NotificationsApi.md#update_notifications) | **PUT** /notifications |
## delete_notification
> delete_notification(id)
This endpoint requires the `notification.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)
## delete_notifications
> delete_notifications(notification_delete_all_dto)
This endpoint requires the `notification.delete` permission.
### Parameters
**notification_delete_all_dto** | [**NotificationDeleteAllDto**](NotificationDeleteAllDto.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)
## get_notification
> models::NotificationDto get_notification(id)
This endpoint requires the `notification.read` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
### Return type
[**models::NotificationDto**](NotificationDto.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_notifications
> Vec<models::NotificationDto> get_notifications(id, level, r#type, unread)
This endpoint requires the `notification.read` permission.
### Parameters
**id** | Option<**uuid::Uuid**> | | |
**level** | Option<[**NotificationLevel**](.md)> | | |
**r#type** | Option<[**NotificationType**](.md)> | | |
**unread** | Option<**bool**> | | |
### Return type
[**Vec<models::NotificationDto>**](NotificationDto.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)
## update_notification
> models::NotificationDto update_notification(id, notification_update_dto)
This endpoint requires the `notification.update` permission.
### Parameters
**id** | **uuid::Uuid** | | [required] |
**notification_update_dto** | [**NotificationUpdateDto**](NotificationUpdateDto.md) | | [required] |
### Return type
[**models::NotificationDto**](NotificationDto.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_notifications
> update_notifications(notification_update_all_dto)
This endpoint requires the `notification.update` permission.
### Parameters
**notification_update_all_dto** | [**NotificationUpdateAllDto**](NotificationUpdateAllDto.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)