POST
/reset_user_password
application/json
POST /reset_user_password HTTP/1.1Content-Type: application/jsonAuthorization: Basic VEVOQU5UX0NMSUVOVF9JRDpURU5BTlRfQ0xJRU5UX1NFQ1JFVA==Host: sample.portal.tencentciam.com{"password" : "MOCK_PASSWORD","email" : "MOCK_EMAIL@163.com","email_otp" : "MOCK_EMAIL_OTP","email_otp_token" : "MOCK_EMAIL_OTP_TOKEN"}
名称 | 描述 |
Authorization | HTTP Basic 认证请求头,格式为 Basic <credentials> ,其中 Basic 为固定字符串,<credentials> 的计算方式为 base64(url_encode(client_id) + ":" + url_encode(client_secret)) ,Basic 和 <credentials> 之间用一个空格隔开。 |
JSON 路径 | 数据类型 | 描述 |
client_id | String | 应用的 client_id。需要与发送验证码时使用的一致。 |
client_secret | String | 应用的 client_secret。Web 应用须传递此参数。单页应用和移动 App 不传递此参数。 |
password | String | 新密码。 |
email | String | 用户的邮箱地址。发送邮箱 OTP 验证码时传递此参数。 |
email_otp_token | String | 发送邮箱验证码成功后服务端返回的 otp_token。 |
email_otp | String | 用户邮箱收到的 OTP 验证码。 |
phone_number | String | 用户的手机号。发送短信 OTP 验证码时传递此参数。 |
phone_number_otp_token | String | 发送短信验证码成功后服务端返回的 otp_token。 |
phone_number_otp | String | 用户手机收到的 OTP 验证码。 |
HTTP/1.1 200 OK
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "recurrent_password"}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "invalid_new_password"}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "user_not_found"}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "abnormal_user_status","error_description" : "User is frozen."}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "bad_email_otp_token"}
HTTP/1.1 400 Bad RequestContent-Type: application/json;charset=UTF-8{"error" : "bad_email_otp"}
本页内容是否解决了您的问题?