注意: - accountId 为必传参数。 - accountPassword, name, otpSecret 三个参数中必须至少有一个,可以多个。 - 如果给某个可选参数传递空字符串 (如 "name": ""),则会清空数据库中该字段对应的数据。 - 如果不传递某个可选参数 (例如不传 name 字段),则不对该字段进行任何修改。
{ "accountId": 1, "accountPassword": "password", "name": "空影力华", "otpSecret": "ea irure esse Excepteur" }
curl --location --request POST 'http://127.0.0.1:6873/api/v1/account/update' \ --header 'Authorization: ' \ --header 'X-Nonce-Id: ' \ --header 'X-Api-Id: ' \ --header 'Content-Type: application/json' \ --data-raw '{ "accountId": 1, "accountPassword": "password", "name": "空影力华", "otpSecret": "ea irure esse Excepteur" }'
{ "code": 0, "msg": "Success", "requestId": "10f1569c234847cc82ed91c421a406b5", "timestamp": 1756094713083, "data": true }