Autional Autional
API Reference GitHub autional.com →

PUT /admin/mfa/ip-whitelist/{credential_id}

Update the label, CIDR, or enabled status of a specified IP whitelist rule. Requires admin permissions.

Multi-Factor Authentication `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Entity ID

Request Body

Schema: dto.UpdateIPWhitelistRequest

FieldTypeRequiredExampleConstraintsDescription
cidr string No
enabled boolean No
label string No

Responses

StatusDescriptionSchema
200Updated successfullydto.IPWhitelistDetailResponse
400Invalid parametergitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
403Insufficient permissionsgitee_com_linmes_authms_base_dto.SimpleResponse
404Not foundgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.IPWhitelistDetailResponse

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

dto.IPWhitelistResponse

FieldTypeRequiredExampleConstraintsDescription
cidr string No 192.168.1.0/24
created_at string No 2026-05-15T08:00:00Z
enabled boolean No True
id string No wl_abc123
label string No office network
tenant_id string No tnt_001

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No