Send sms verification code to current user
POST
/api/v1/user/current/sms/send
授权
UserHttpBearer
Use existing opaque tokens for authentication
类型HTTP (bearer)
请求体
application/json
JSON
{
"bizKey": "MODIFY_MOBILE",
"mobile": 13813000000,
"country": "CN"
}
响应
OK
*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}
Send email verification code to current user
POST
/api/v1/user/current/email/send
授权
UserHttpBearer
Use existing opaque tokens for authentication
类型HTTP (bearer)
请求体
application/json
JSON
{
"bizKey": "BIND_EMAIL",
"toAddress": [
[
"james@xcancloud.com"
]
]
}
响应
OK
*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}
Query the detail of current user
Update the current user
PATCH
/api/v1/user/current
授权
UserHttpBearer
Use existing opaque tokens for authentication
类型HTTP (bearer)
请求体
application/json
JSON
{
"username": "U33730000",
"firstName": "James",
"lastName": "Jones",
"fullName": "James Jones",
"landline": "010-88287890",
"avatar": "http://prod-apis.xcan.cloud/storage/pubapi/v1/file/logo.png",
"title": "CTO",
"gender": "MALE",
"address": "string"
}
响应
OK
*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}
Update the mobile of current user
PATCH
/api/v1/user/current/mobile
授权
UserHttpBearer
Use existing opaque tokens for authentication
类型HTTP (bearer)
请求体
application/json
JSON
{
"bizKey": "MODIFY_MOBILE",
"mobile": 13813000000,
"country": "CN",
"itc": 86,
"verificationCode": 778717,
"linkSecret": "string"
}
响应
OK
*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}
Update the email of current user
PATCH
/api/v1/user/current/email
授权
UserHttpBearer
Use existing opaque tokens for authentication
类型HTTP (bearer)
请求体
application/json
JSON
{
"bizKey": "string",
"email": "james@xcan.cloud",
"verificationCode": 778717,
"linkSecret": "string"
}
响应
OK
*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}
Query tenant of current user
Check sms verification code of current user
GET
/api/v1/user/current/sms/check
授权
UserHttpBearer
Use existing opaque tokens for authentication
类型HTTP (bearer)
参数
查询参数
bizKey*
Sms business type key
类型string
必填有效值
"SIGNUP""SIGNIN""PASSWORD_FORGET""PASSWORD_UPDATE""SIGN_CANCEL""MODIFY_MOBILE""BIND_MOBILE""PAY_PASSWORD_UPDATE""REALNAME_AUTH_SUBMIT""REALNAME_AUTH_PASSED""REALNAME_AUDIT_FAILURE""SYS_EXCEPTION_NOTICE""SYS_RECOVERY_NOTICE""SYS_SECURITY_NOTICE""LICENSE_SENT""CHANNEL_TEST""TODO_REALNAME_AUTH""TODO_BUSINESS_CONSULTATION""TODO_OFFLINE_SERVICE""TODO_TICKET""TODO_TRANSFER_CONFIRM""TODO_INVOICE_CONFIRM""TODO_WITHDRAW_CONFIRM""RECHARGE_SUCCESS""WITHDRAW_SUCCESS""ORDER_PAY_SUCCESS""ORDER_PAY_PENDING""ORDER_PAY_TIMEOUT""ORDER_TO_EXPIRE""ORDER_CHANGE_SUCCESS""TICKET_REPLY_REMINDER""TESTING_EXEC_STARTED""TESTING_EXEC_FINISHED""TESTING_EXEC_FAILED""TESTING_TASK_OVERDUE""INDICATOR_MODIFY_SUBMIT""INDICATOR_AUDIT_PASSED""INDICATOR_AUDIT_FAILED""EVENT_NOTICE""PASSWORD_FORGET""PASSWORD_UPDATE""SIGN_CANCEL""MODIFY_MOBILE""BIND_MOBILE"示例
"MODIFY_MOBILE"mobile*
User mobile
类型string
必填示例
13813000000最小长度
1country*
User country code
类型string
必填示例
"CN"最大长度
16最小长度
1verificationCode*
Sms verification code
类型string
必填示例
778717最大长度
8最小长度
1响应
OK
*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}
Check email verification code of current user
GET
/api/v1/user/current/email/check
授权
UserHttpBearer
Use existing opaque tokens for authentication
类型HTTP (bearer)
参数
查询参数
bizKey*
Email business type key
类型string
必填有效值
"EVENT_NOTICE""SIGNUP""SIGNIN""PASSWORD_FORGET""PASSWORD_UPDATE""SIGN_CANCEL""MODIFY_EMAIL""BIND_EMAIL""PAY_PASSWORD_UPDATE""REALNAME_AUTH_SUBMIT""REALNAME_AUTH_PASSED""REALNAME_AUDIT_FAILURE""SYS_EXCEPTION_NOTICE""SYS_RECOVERY_NOTICE""SYS_SECURITY_NOTICE""LICENSE_SENT""CHANNEL_TEST""TODO_REALNAME_AUTH""TODO_BUSINESS_CONSULTATION""TODO_OFFLINE_SERVICE""TODO_TICKET""TODO_TRANSFER_CONFIRM""TODO_INVOICE_CONFIRM""TODO_WITHDRAW_CONFIRM""RECHARGE_SUCCESS""WITHDRAW_SUCCESS""ORDER_PAY_SUCCESS""ORDER_PAY_PENDING""ORDER_PAY_TIMEOUT""ORDER_TO_EXPIRE""ORDER_CHANGE_SUCCESS""TICKET_REPLY_REMINDER""INVOICE_APPLY_SUCCESS""COUPON_DISTRIBUTION""COUPON_TO_EXPIRE""BLOG_SUBSCRIPTION_NOTICE""TESTING_EXEC_STARTED""TESTING_EXEC_FINISHED""TESTING_EXEC_FAILED""TESTING_TASK_OVERDUE""INDICATOR_MODIFY_SUBMIT""INDICATOR_AUDIT_PASSED""INDICATOR_AUDIT_FAILED""PASSWORD_FORGET""PASSWORD_UPDATE""MODIFY_EMAIL""BIND_EMAIL"示例
"BIND_EMAIL"email*
User e-mail
类型string
必填示例
"james@xcan.cloud"最大长度
100最小长度
1verificationCode*
Email verification code
类型string
必填示例
778717最大长度
8最小长度
1响应
OK
*/*
JSON
{
"code": "string",
"msg": "string",
"data": {
},
"datetime": "string",
"ext": {
"additionalProperties": {
}
}
}