修改联系人
#
接口概述- 功能:修改成员
- 请求方式:POST
- 请求地址:/api/contact/{contact_id}?appid={appid}&access_token={access_token}
#
请求参数参数名 | 类型 | 必须 | 参数位置 | 描述 | 示例值 |
---|---|---|---|---|---|
contact_id | integer | 是 | uri | 联系人ID | 1 |
name | string | 否 | body | 姓名 | abcdefg |
phone | string | 否 | body | 手机号 | abcdefg |
group_id | integer | 否 | body | 分组ID | abcdefg |
owner_user_id | integer | 是 | body | 分组所属帐号(个人用户ID或团队ID | 60002245150 |
owner_user_type | integer | 是 | body | 分组所属帐号类型 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 | 无权限 |