Autional Autional
API Reference GitHub autional.com →

PUT /admin/notifications/preferences/{user_id}

Admin sets notification channel preferences (email/SMS/Push, etc.) for a specified user.

Notification Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
user_id path string Yes User ID

Request Body

Schema: dto.NotificationPreferencesRequest

FieldTypeRequiredExampleConstraintsDescription
user_id string Yes usr_abc123 User ID
channels object No Channel settings
email_enabled boolean No True Email enabled
push_enabled boolean No True Push enabled
sms_enabled boolean No False SMS enabled

Responses

StatusDescriptionSchema
200Preferences set successfullydto.DataResponse-dto_NotificationPreferencesResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
403Insufficient permissionsgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.DataResponse-dto_NotificationPreferencesResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.NotificationPreferencesResponse No
message string No
timestamp string No

dto.NotificationPreferencesResponse

User notification preference settings

FieldTypeRequiredExampleConstraintsDescription
channels object No Channel settings
email_enabled boolean No True Email enabled
push_enabled boolean No True Push enabled
quiet_hours object No Do not disturb period
sms_enabled boolean No False SMS enabled
type_prefs object No Notification type preference
updated_at string No 2026-04-15T10:30:00Z Update time
user_id string No usr_abc123 User ID

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No