仅当前主设备可将另一台设备设为主设备;主设备可移除其他可信设备,非主设备仅可查看。
API路径:PUT /api/mfa/trusted-devices/{deviceId}/primary
请求体:[设为主管理设备请求
仅当前主设备可将另一台设备设为主设备;主设备可移除其他可信设备,非主设备仅可查看。](userId、currentDeviceId 必填;tenantId 可选)
{ "userId": "string", "currentDeviceId": "string", "tenantId": "string" }
curl --location --globoff --request PUT '/${platform.component.mfa.management.api-prefix:/mfa}/trusted-devices//primary' \ --header 'Content-Type: application/json' \ --data '{ "userId": "string", "currentDeviceId": "string", "tenantId": "string" }'
{ "data": null, "code": "", "msg": "", "i18nDict": { "": { "": "" } }, "timestamp": 0 }