The content of this page has been automatically translated by AI. If you encounter any problems while reading, you can view the corresponding content in Chinese.

Creating a Room

Last updated: 2025-04-30 15:40:05

1. API Description

API request domain name: iot.cloud.tencent.com/api/exploreropen/tokenapi. This interface (AppCreateRoom) is used to create a room.

2. Input Parameters

Name
Type
Required
Description
AccessToken
String
Yes
Common parameter. AccessToken is used for user authentication of a logged-in user.
RequestId
String
Yes
Common parameter. Unique request ID can be generated manually. It is recommended to use uuid. When locating issues, provide the RequestId for the request.
Action
String
Yes
Common parameter. This interface takes values: AppCreateRoom.
FamilyId
String
Yes
Family ID that the created room belongs to.
Name
String
Yes
Name of the created room.

3. Output Parameters

Name
Type
Description
RequestId
String
Common parameter. Unique request ID is the same as the input parameter. When locating issues, provide the RequestId for the request.
RoomId
String
Room ID successfully created.

4. Samples

Input Example
POST https://iot.cloud.tencent.com/api/exploreropen/tokenapi HTTP/1.1
content-type: application/json
{
"RequestId": "req_1",
"Action": "AppCreateRoom",
"Name": "name",
"FamilyId": "family_address",
"AccessToken": "c1******************847e"
}
Output Example: Success
{
"Response": {
"Data": {
"RoomId": 123456
},
"RequestId": "req_1"
}
}

5. Error Code

Error Code
Description
InternalError
Internal error.
InvalidParameterValue
Invalid parameter value.
InvalidParameterValue.InvalidAccessToken
The Token is invalid.