Skip to main content
Version: v22.10

创建联系人

接口概述

  • 功能:添加成员
  • 请求方式:POST
  • 请求地址:/api/contact/

请求参数

参数名类型必须参数位置描述示例值
group_idintegerbody分组ID1
owner_user_idintegerbody分组所属帐号(个人用户ID或团队ID60002245150
owner_user_typeintegerbody分组所属帐号类型 1=团队,2=个人用户1
namestringbody姓名abcdefg
phonestringbody手机号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无权限