CreateAppLayout
Creates a custom layout for an application.
Operation description
QPS limit
The queries per second (QPS) limit per user is 10. If the limit is exceeded, API calls are throttled, which may affect your services. Call this API operation at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rtc:CreateAppLayout |
none |
*App
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
The client token. |
53200b81-b761-4c10-842a-a0726d97xxxx |
| AppId |
string |
Yes |
The application ID. You can create and query the ID in the console. Only a single ID is supported. |
ac7N**** |
| Layout |
object |
Yes |
The layout. |
|
| Name |
string |
Yes |
The name of the layout. |
Layout |
| Panes |
array<object> |
Yes |
The list of panes. |
|
|
object |
No |
The detailed information about the pane. |
||
| ZOrder |
integer |
No |
The Z-order of the pane. A value of 0 indicates the bottom layer, 1 indicates the layer above 0, and so on. |
0 |
| X |
number |
No |
The X coordinate, represented as a normalized percentage. Valid values: 0.0 ≤ X ≤ 1.0. |
0.25 |
| Y |
number |
No |
The Y coordinate, represented as a normalized percentage. Valid values: 0.0 ≤ Y ≤ 1.0. |
0.25 |
| Height |
number |
No |
The height of the pane, represented as a normalized percentage. Valid values: 0.0 < Height ≤ 1.0. |
0.25 |
| Width |
number |
No |
The width of the pane, represented as a normalized percentage. Valid values: 0.0 < Width ≤ 1.0. |
0.25 |
| PaneId |
integer |
No |
The ID of the pane. The value starts from 0. |
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
20A6D1E3-1F5F-5440-A4F1-EC7831646FE4 |
| LayoutId |
string |
The ID of the layout. |
167466539798442**** |
Examples
Success response
JSON format
{
"RequestId": "20A6D1E3-1F5F-5440-A4F1-EC7831646FE4",
"LayoutId": "167466539798442****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterError | %s. | |
| 400 | Quota.Invalid | %s. | Resource quota is insufficient, please submit a work order to increase the quota |
| 404 | NotFound | %s. | The requested resource does not exist |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.