Skip to main content
Version: latest

修改联系人

接口概述#

  • 功能:修改成员
  • 请求方式:POST
  • 请求地址:/api/contact/{contact_id}?appid={appid}&access_token={access_token}

请求参数#

参数名类型必须参数位置描述示例值
contact_idintegeruri联系人ID1
namestringbody姓名abcdefg
phonestringbody手机号abcdefg
group_idintegerbody分组IDabcdefg
owner_user_idintegerbody分组所属帐号(个人用户ID或团队ID60002245150
owner_user_typeintegerbody分组所属帐号类型 1=团队,2=个人用户1

响应参数#

响应示例#

  • 请求成功
{    "code": "OK",    "error": {        "type": ""    },    "data": {},    "request_id": "10595b0f-9333-4ad7-8bda-ce2c00119758"}
  • 请求失败
{    "code": "InvalidArgument",    "error": {        "type": "invalid_param"    },    "data": {},    "request_id": "793fb149-4f12-4439-aa83-01d0e211b15c"}

错误码#

error.type 错误代码错误描述
contacts_user_not_found用户不存在
group_edit_error修改分组失败
role_edit_error修改角色失败
exceed_user_limit可用人数超过限制
invalid_argument参数错误
claim_error无权限