NATSprofile.contact.unbind解绑联系方式

解除指定联系方式。

Request Payload

消息格式:JSON

NameData TypeRequiredDescription
userIdstringYes用户 ID
contactIdstringYes联系方式 ID
type RequestBody = {
  /** 用户 ID */
  userId: string
  /** 联系方式 ID */
  contactId: string
}
{
  "userId": "01JD8SEGQ0P9N2XK4L7VDH3T6C",
  "contactId": "01JD8SNP7N9R2W8YR3V6YEL0W4G"
}

Response Payload

回复使用统一信封 {id, code, messages, result},其 result:

result type: null

Response Code

回复使用统一信封 {id, code, messages, result},其 code 字段:

code Meaning Notes
0 成功 解绑联系方式

Examples

{ "userId": "01JD8SEGQ0P9N2XK4L7VDH3T6C", "contactId": "01JD8SNP7N9R2W8YR3V6YEL0W4G" }
{
  "id": "01JD8SV6A2L8N5OK",
  "code": 0,
  "messages": [],
  "result": null
}

Remarks

账号再无其他可用凭据(无密码、无其他联系方式、无三方)时拒绝(共享码 1005)。