Skip to main content
Version: latest

修改分组

接口概述#

  • 功能:修改分组
  • 请求方式:POST
  • 请求地址:/api/contacts/teams/{team_id}/groups/{group_id}

请求参数#

参数名类型必须参数位置描述示例值
team_idintegeruri团队ID30
group_idintegeruri分组ID30
namestringbody分组名称测试分组
orderintegerbody排序1
from_idintegerbody原来所属的分组ID1
to_idintegerbody移动到新的分组下(移动分组时使用)1

响应参数#

响应示例#

  • 请求成功
{    "code": "OK",    "error": {        "type": ""    },    "data": {},    "request_id": "e9ab73bf-6a50-406f-8b19-7af5eb9e916c"}
  • 请求失败
{    "code": "NotFound",    "error": {        "type": "contacts_group_not_found"    },    "data": {},    "request_id": "e82ce6af-3256-4805-aca6-b86c19d6c334"}

错误码#

error.type 错误代码错误描述
invalid_argument参数校验不通过
claim_error无权限
contacts_team_not_found
contacts_group_not_found
group_too_deep
parent_group_not_found
default_group_be_modified
duplicated_remote_id