Last Updated on : 2023-06-15 06:07:52
Create a room under a specified hotel industry project.
POST: /v1.0/osaas/projects/{project_id}/room
Parameter name | Type | IN | Required | Description |
---|---|---|---|---|
projectId | String | uri | true | The unique ID of a specified project. |
spaceId | String | uri | false | The unique ID of a specified space. A room can be linked with any space. |
roomName | String | uri | true | The name of a specified room. Up to 64 characters can be entered. |
roomNo | String | uri | true | The number of a specified room. Up to 32 characters can be entered. |
telephone | String | uri | false | The mobile phone number. Up to 20 characters can be entered. |
description | String | uri | false | The description of a specified room. Up to 255 characters can be entered. |
uid | String | uri | false | The unique ID of a specified user. Create a room for a specified user. |
Parameter name | Type | Description |
---|---|---|
code | Integer | The response code if the API call fails. This parameter value is empty if the API call succeeds. |
success | String | Indicates whether the operation is successful. |
msg | String | The response message that is returned if the request fails. It is empty if the request is successful. |
t | Long | The 13-bit timestamp. |
result | String | The unique ID of a specified room. |
POST: {url}/v1.0/osaas/projects/1160823965053******/room
{
"room_no": "101",
"room_name": "Room ***",
"space_id": "116082396505312****"
}
{
"result": "1112382396505******",
"t": 1566053034624,
"success": true
}
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback