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

PUT /devices/{id}/trust

设置设备的信任状态

会话与设备 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 设备ID

Request Body

Schema: dto.TrustDeviceRequest

FieldTypeRequiredExampleConstraintsDescription
trust boolean Yes 是否信任

Responses

StatusDescriptionSchema
200设置成功dto.SimpleResponseWrapper
400请求错误dto.SimpleResponseWrapper
401未授权dto.SimpleResponseWrapper
404设备不存在dto.SimpleResponseWrapper

Referenced Schemas

dto.SimpleResponseWrapper

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No