Preempt Meeting Room

Last Updated on : 2024-06-26 09:25:46download

Indicates whether a meeting room can be preempted based on the entered criteria. The new reservation ID will be returned on success, and the reason for failure will be returned on failure.

API address

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

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
topicString trueThe theme of a specified meeting.
start_timeLong trueThe 13-bit timestamp of the start time.
end_timeLong trueThe 13-bit timestamp of the end time.
meeting_room_idString falseThe ID of a specified meeting room.
participantsList trueThe IDs of participants in the meeting.
cc_participantsList falseThe IDs of persons who are mentioned in the carbon copy.
noticeBoolean trueIndicates whether to send push notifications.
notice_timeLong falseThe time when a push notification is sent in advance. Unit: seconds.
attachment_urlList falseThe URL of a specified attachment. The number of attachments does not exceed 10.
descriptionString falseThe description of a specified meeting, with no more than 256 characters.
creatorString trueThe ID of the user who creates the meeting.

Return parameter

Parameter nameTypeDescription
resultStringThe result of new reservation ID on success.

Request example

POST: /v2.0/iot-03/meeting-reservations/action/seize
{ "topic": "IoT Industry Expo" "start_time": 1625052798000, "end_time": 1625059998000, "meeting_room_id": "1410118860341833xxx", "participants": [ "1", "2" ], "cc_participants": [], "notice": true, "notice_time": 180, "attachment_url": [ "https://platform.tuya.com/cloud/basic?id=p162277846137193kr3f&toptab=project" ], "description": "The small meeting room has been upgraded.", "creator": "3" }

Return example

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

Error code

For more information, see error code.