Modify Meeting Room

Last Updated on : 2023-06-21 07:12:57download

Modify the information about a specified meeting room according to the meeting room ID and updated parameter values. An empty list of images and tags means to clear the list of meeting room images and tags. The value of true indicates that the information about the meeting room is modified successfully.

API address

PUT: /v2.0/iot-03/meeting-rooms/{room_id}

Request parameter

Parameter nameTypeINRequiredDescription
room_idStringuritrueThe ID of a specified meeting room.

Description of body

Parameter nameTypeINRequiredDescription
nameString falseThe name of a specified meeting room.
image_urlsList falseThe URL list of meeting room images.
typeString falseThe type of a specified meeting room. Valid values:
  • normal: normal meeting room.
  • vip: VIP meeting room.
addressString falseThe location of a specified meeting room.
longitudeString falseThe longitude of a specified meeting room.
latitudeString falseThe latitude of a specified meeting room.
range_typeString falseThe opening range of a specified meeting room. Valid values:
  • all: all staff.
  • personnel: the specified personnel.
range_idsList falseThe list of IDs that can be used to reserve a specified meeting room.
room_statusString falseThe status of a specified meeting room. Valid values:
  • open: The meeting room is open and available.
  • stop: The meeting room is suspended and unavailable.
suspension_remarkString falseThe remarks on suspension.
reservation_approvedString falseSpecifies whether to enable approval of the reservation. Valid values:
  • Y: Approval is required.
  • N: Approval is not required.
approval_process_idString falseThe ID of the approval process for a specified meeting room.
preemptibleString falseSpecifies whether a meeting room can be occupied by another person if the person who makes the reservation does not appear within the specified time. Valid values:
  • Y: yes.
  • N: no.
system_releaseString falseSpecifies whether the reservation of a meeting room can be automatically released by the system. Valid values:
  • Y: yes.
  • N: no.
spaceInteger falseThe number of people that can be accommodated in a specified meeting room.
tag_codesList falseThe list of meeting room tags.

Return parameter

Parameter nameTypeDescription
resultBooleanThe operation result of modifying the meeting room.

Request example

PUT: /v2.0/iot-03/meeting-rooms/1410175631475462***
{
  "name": "Meeting Room Approval",
  "image_urls": [
    "www.tuya.com",
    "www.qq.com"
  ],
  "type": "vip",
  "address": "F12, Building A, Grand Center",
  "longitude": "108.3",
  "latitude": "111.4",
  "range_type": "personnel",
  "range_ids": [
    "007",
    "008"
  ],
  "room_status": "open",
  "suspension_remark": "Suspended",
  "preemptible": "N",
  "system_release": "N",
  "space": 12,
  "tag_codes": [
    "1",
    "2",
    "3"
  ]
}

Return example

{
    "result": true,
    "t": 1625554153851,
    "success": true
}

Error code

For more information, see error code.