Autional Autional
API Reference GitHub autional.com →

PUT /admin/users/{user_id}

Update a specified user's status, MFA settings, and metadata

Account Management `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
user_id path string Yes User ID

Request Body

Schema: dto.UserUpdateRequest

FieldTypeRequiredExampleConstraintsDescription
age_group string No Age group
birth_date string No Date of birth
department_id string No Department ID
email string No Email
is_minor boolean No Is minor
nickname string No Nickname
pending_parental_consent boolean No Awaiting parental consent
phone string No Phone number
role string No Role

Responses

StatusDescriptionSchema
200Update successfuldto.UpdateUserResponse

Referenced Schemas

dto.AuthUserResponse

Authenticated user info

FieldTypeRequiredExampleConstraintsDescription
age_group string No Age group
birth_date string No Date of birth (RFC3339)
created_at string No 2026-01-01T00:00:00Z Created at
email string No john@example.com Email
email_verified_at string No 2026-01-10T08:00:00Z Email verified at
id string No usr_abc123 User ID
is_minor boolean No Is minor
last_login_at string No 2026-04-14T10:30:00Z Last login
last_login_ip string No 192.168.1.1 Last login IP
locked_until string No 2026-04-15T12:00:00Z Lockout end
login_fail_count integer No 0 Failure count
metadata object No Extended metadata
mfa_enabled boolean No False MFA enabled
mfa_type string No totp MFA type
must_change_password boolean No False Force password change
password_changed_at string No Password last changed at
pending_parental_consent boolean No Awaiting parental consent
phone string No 13800138000 Phone number
phone_verified_at string No 2026-01-10T08:00:00Z Phone verified at
status string No active Status
tenant_id string No tnt_xyz789 Tenant ID
updated_at string No 2026-04-10T14:20:00Z Updated at
username string No john_doe Username

dto.UpdateUserResponse

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