Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 979 Bytes

user.update_me.md

File metadata and controls

57 lines (46 loc) · 979 Bytes

user.update_me

更新当前用户信息。

请求方式

PATCH {base_url}/user.update_me

请求参数

需要登录

参数名称 参数类型 参数是否必须? 说明 样例
name string 用户名 (@name) beary_bot
full_name string 用户全名 bearybot

响应

200

{
  "inactive": false,
  "role": "normal",
  "email": "[email protected]",
  "name": "BearyBot",
  "type": "assistant",
  "created": "2017-01-11T12:28:31.000+0000",
  "id": "=bwMkR",
  "avatars": {
    "small": null,
    "medium": null,
    "large": null
  },
  "team_id": "=bw52O",
  "full_name": "倍洽小助手",
  "mobile": null,
  "profile": {
    "bio": null,
    "position": null,
    "skype": null
  }
}

错误响应

{
  "code": // error code,
  "error": "unexpected error"
}