Account Edit
- Endpoint Path:
/api/v2/account/edit
- Method:
PUT
- Request:
application/json
Headers Optional Parameter
Parameter Name | Public Mode (Required) | Private Mode (Required) |
---|---|---|
X-Fresns-Aid | required | required |
X-Fresns-Aid-Token | required | required |
X-Fresns-Uid | optional | optional |
X-Fresns-Uid-Token | optional | optional |
Body Params
Parameter Name | Type | Required | Description |
---|---|---|---|
codeType | String | optional | 验证码类型:email ,sms |
verifyCode | String | optional | 验证码 |
newVerifyCode | String | optional | 新账号验证码,修改邮箱和手机号专用 |
editEmail | String | optional | 邮箱(留空代表不修改) |
editPhone | Number | optional | 手机号码(留空代表不修改) |
editCountryCode | Number | optional | 国际区号,修改手机号必传 |
password | String | optional | 当前登录密码(以 Base64 传参) |
editPassword | String | optional | 修改登录密码(留空代表不修改,以 Base64 传参) |
editPasswordConfirm | String | optional | 再传一次新密码(留空代表不修改,以 Base64 传参) |
walletPassword | String | optional | 当前钱包密码(以 Base64 传参) |
editWalletPassword | String | optional | 修改钱包密码(留空代表不修改,以 Base64 传参) |
editWalletPasswordConfirm | String | optional | 再传一次新钱包密码(留空代表不修改,以 Base64 传参) |
editLastLoginTime | Boolean | optional | 最后一次登录时间(留空代表不修改)1 更新 |
deviceToken | String | optional | iOS 或 Android 设备 Token(留空代表不修改) |
Request Description
editLastLoginTime
不需要验证码- 一个验证码只能修改一次资料
- 设置邮箱(当前账号无邮箱)
codeType
newVerifyCode
验证码模板 ID 为4
editEmail
- 修改邮箱
codeType
verifyCode
验证码模板 ID 为4
newVerifyCode
验证码模板 ID 为3
editEmail
- 设置手机号码(当前账号无手机号码)
codeType
newVerifyCode
验证码模板 ID 为4
editPhone
editCountryCode
- 修改手机号码
codeType
verifyCode
验证码模板 ID 为4
newVerifyCode
验证码模板 ID 为3
editPhone
editCountryCode
- 修改登录密码:
verifyCode
和password
必传其一,或者全部传,全传则全验证verifyCode
验证码模板 ID 为5
password
editPassword
editPasswordConfirm
- 修改钱包密码:
verifyCode
和walletPassword
必传其一,或者全部传,全传则全验证verifyCode
验证码模板 ID 为6
walletPassword
editWalletPassword
editWalletPasswordConfirm
Return
json
{
"code": 0,
"message": "ok",
"data": null
}