Modify Room Information

Last Updated on : 2023-06-21 07:13:02download

Modify the information about a specified room based on the unique room ID, including the room name, room code, contact number, room description, and other information.

API address

PUT: /v1.0/osaas/rooms/{room_id}

Request parameter

Parameter nameTypeINRequiredDescription
roomIdStringuritrueThe unique ID of a specified room.

Return parameter

Parameter nameTypeDescription
codeIntegerThe response code if the API call fails. This parameter value is empty if the API call succeeds.
successStringIndicates whether the operation is successful.
msgStringThe response message that is returned if the request fails. It is empty if the request is successful.
tLongThe 13-bit timestamp.
resultBooleanThe operation result.

Request example

PUT: {url}/v1.0/osaas/rooms/1160823965053****
{
  "room_no": "101",
  "room_name": "Room **",
}

Return example

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

Error code

For more information, see error code.