public class Unit extends Object
public Unit(Config config)
public BindDepartmentUnitResp bindDepartment(BindDepartmentUnitReq req, RequestOptions reqOptions) throws Exception
## 注意事项;;操作的部门需要在应用的通讯录权限范围内。了解通讯录权限范围,可参见[权限范围资源介绍](https://open.feishu.cn/document/ukTMukTMukTM/uETNz4SM1MjLxUzM/v3/guides/scope_authority)。;;## 使用限制;;- 单个单位可关联的部门数量上限为 1,000。;- 同一个部门只能关联一个单位。 ;
Exceptionpublic BindDepartmentUnitResp bindDepartment(BindDepartmentUnitReq req) throws Exception
## 注意事项;;操作的部门需要在应用的通讯录权限范围内。了解通讯录权限范围,可参见[权限范围资源介绍](https://open.feishu.cn/document/ukTMukTMukTM/uETNz4SM1MjLxUzM/v3/guides/scope_authority)。;;## 使用限制;;- 单个单位可关联的部门数量上限为 1,000。;- 同一个部门只能关联一个单位。 ;
Exceptionpublic CreateUnitResp create(CreateUnitReq req, RequestOptions reqOptions) throws Exception
## 前提条件;;单位属于付费功能,企业需要开通对应的飞书版本才可以使用。了解更多,可参见[单位管理](https://www.feishu.cn/hc/zh-CN/articles/333548009177)。;;## 使用限制;;单租户内单位总数上限为 1,000。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=contact&resource=unit&version=v3 ;
Exceptionpublic CreateUnitResp create(CreateUnitReq req) throws Exception
## 前提条件;;单位属于付费功能,企业需要开通对应的飞书版本才可以使用。了解更多,可参见[单位管理](https://www.feishu.cn/hc/zh-CN/articles/333548009177)。;;## 使用限制;;单租户内单位总数上限为 1,000。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=create&project=contact&resource=unit&version=v3 ;
Exceptionpublic DeleteUnitResp delete(DeleteUnitReq req, RequestOptions reqOptions) throws Exception
## 注意事项;;如果单位类型被其他业务应用,则不允许直接删除单位。例如,在配置成员的组织架构可见范围时,通过单位类型设置了可见范围,那么该单位类型对应的单位就无法直接删除。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=contact&resource=unit&version=v3 ;
Exceptionpublic DeleteUnitResp delete(DeleteUnitReq req) throws Exception
## 注意事项;;如果单位类型被其他业务应用,则不允许直接删除单位。例如,在配置成员的组织架构可见范围时,通过单位类型设置了可见范围,那么该单位类型对应的单位就无法直接删除。 ;
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=delete&project=contact&resource=unit&version=v3 ;
Exceptionpublic GetUnitResp get(GetUnitReq req, RequestOptions reqOptions) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=unit&version=v3 ;
Exceptionpublic GetUnitResp get(GetUnitReq req) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=get&project=contact&resource=unit&version=v3 ;
Exceptionpublic ListUnitResp list(ListUnitReq req, RequestOptions reqOptions) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=unit&version=v3 ;
Exceptionpublic ListUnitResp list(ListUnitReq req) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=list&project=contact&resource=unit&version=v3 ;
Exceptionpublic ListDepartmentUnitResp listDepartment(ListDepartmentUnitReq req, RequestOptions reqOptions) throws Exception
Exceptionpublic ListDepartmentUnitResp listDepartment(ListDepartmentUnitReq req) throws Exception
Exceptionpublic PatchUnitResp patch(PatchUnitReq req, RequestOptions reqOptions) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=contact&resource=unit&version=v3 ;
Exceptionpublic PatchUnitResp patch(PatchUnitReq req) throws Exception
官网API文档链接:https://open.feishu.cn/api-explorer?from=op_doc_tab&apiName=patch&project=contact&resource=unit&version=v3 ;
Exceptionpublic UnbindDepartmentUnitResp unbindDepartment(UnbindDepartmentUnitReq req, RequestOptions reqOptions) throws Exception
## 注意事项;;操作的部门需要在应用的通讯录权限范围内。了解通讯录权限范围,可参见[权限范围资源介绍](https://open.feishu.cn/document/ukTMukTMukTM/uETNz4SM1MjLxUzM/v3/guides/scope_authority)。 ;
Exceptionpublic UnbindDepartmentUnitResp unbindDepartment(UnbindDepartmentUnitReq req) throws Exception
## 注意事项;;操作的部门需要在应用的通讯录权限范围内。了解通讯录权限范围,可参见[权限范围资源介绍](https://open.feishu.cn/document/ukTMukTMukTM/uETNz4SM1MjLxUzM/v3/guides/scope_authority)。 ;
ExceptionCopyright © 2026. All rights reserved.