Skip to main content
Version: latest

创建联系人

接口概述​

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

请求参数​

参数名类型必须参数位置描述示例值
group_idinteger是body分组ID1
owner_user_idinteger是body分组所属帐号(个人用户ID或团队ID60002245150
owner_user_typeinteger是body分组所属帐号类型 1=团队,2=个人用户1
namestring是body姓名abcdefg
phonestring否body手机号18599999999

响应参数​

无

响应示例​

  • 请求成功
{
"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 错误代码错误描述
invalid_argument参数错误
claim_error无权限