抢占会议室

更新时间:2023-06-21 07:13:04下载pdf

本文介绍抢占会议室的 API。

接口描述

通过传入的条件判断会议是否可抢占。抢占成功返回新增会议预约 ID;抢占失败返回失败原因。

接口地址

POST: /v2.0/iot-03/meeting-reservations/action/seize

请求参数

body 说明

参数名类型参数位置是否必填说明
topicString true会议主题
start_timeLong true会议开始时间 13位 时间戳
end_timeLong true会议结束时间 13 位时间戳
meeting_room_idString false会议室 ID
participantsList true参会人 ID 集合
cc_participantsList false抄送人 ID 集合
noticeBoolean true是否推送通知
notice_timeLong false会议提前通知时间,单位秒
attachment_urlList false附件,文件地址 URL, 附件个数不超过 10 个
descriptionString false会议描述,长度不超过 256 个字符
creatorString true创建人 ID

返回参数

参数名类型说明
resultString抢占成功新建预约 ID

请求示例

POST: /v2.0/iot-03/meeting-reservations/action/seize
{
  "topic": "iot行业交流分享会",
  "start_time": 1625052798000,
  "end_time": 1625059998000,
  "meeting_room_id": "1410118860341833xxx",
  "participants": [
    "1",
    "2"
  ],
  "cc_participants": [],
  "notice": true,
  "notice_time": 180,
  "attachment_url": [
    "https://iot.tuya.com/cloud/basic?id=p162277846137193kr3f&toptab=project"
  ],
  "description": "小型会议室升级了",
  "creator": "3"
}

返回示例

{
    "result": "141019987082373xxx",
    "t": 1625052824145,
    "success": true
}

错误码

参考 错误码