Skip to content

查询建筑物ID

该接口用于根据租户自定义建筑 ID 查询建筑 ID。

请求

项目
HTTP URLhttps://open.feishu.cn/open-apis/meeting_room/building/batch_get_id?custom_building_ids=test01&custom_building_ids=test02
HTTP MethodGET
支持的应用类型custom,isv
权限要求 调用该 API 所需的权限。开启其中任意一项权限即可调用calendar:room:readonly 获取会议室信息

请求头

名称类型必填描述
Authorizationstringtenant_access_token 值格式:"Bearer access_token" 示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560" 了解更多:如何选择与获取 access token
Content-Typestring固定值:"application/json; charset=utf-8"

查询参数

参数参数类型必须说明
custom_building_idsstring用于查询指定建筑物的租户自定义建筑ID

响应

响应体

参数说明
code返回码,非 0 表示失败
msg返回码的描述,"success" 表示成功,其他为错误提示信息
data返回业务信息
∟buildings建筑列表
   ∟building_id建筑物ID
   ∟custom_building_id租户自定义建筑物ID

响应体示例

json
{
    "code":0,
    "msg":"success",
    "data":{
        "buildings":[
            {
                "building_id":"omb_8ec170b937536a5d87c23b418b83f9bb",
                "custom_bulding_id":"test01"
            },
            {
                "building_id":"omb_38570e4f0fd9ecf15030d3cc8b388f3a",
                "custom_bulding_id":"test02"
            }
        ]
    }
}

错误码

具体可参考:服务端错误码说明

内容来源:飞书开放平台 · 自动爬取整理