A AuthMS API Wiki API Reference iam.tianv.com →

PUT /auth/me/devices/{device_id}/trust

设置或取消设备的信任状态,信任设备可跳过重复的MFA验证

账户管理 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
device_id path string Yes 设备ID

Request Body

Schema: dto.SelfTrustDeviceRequest

FieldTypeRequiredExampleConstraintsDescription
trusted boolean No True Is trusted

Responses

StatusDescriptionSchema
200操作成功dto.SimpleResponseWrapper

Referenced Schemas

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No