ModifyAppViewTemplate
Update an application view template.
Operation description
QPS limits
This API supports up to 10 calls per second per user. Exceeding this limit triggers rate limiting, which may affect your business. Use this API with caution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rtc:ModifyAppViewTemplate |
update |
*App
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
Application ID. Create and view it in the console. Only one ID is supported. |
wv7N**** |
| Template |
object |
Yes |
The template. |
|
| Name |
string |
Yes |
Template name. |
模板 |
| LayoutIds |
array |
Yes |
List of layout IDs. Maximum of 16 IDs. |
|
|
string |
No |
Layout ID. |
22 |
|
| MediaEncode |
integer |
Yes |
Encoding option. |
1 |
| TemplateId |
string |
Yes |
Template ID. |
ac7N**** |
The MediaEncode values are as follows.
| ID | Width | Height | Bitrate (Kbps) | Frame rate (FPS) | Remarks |
| 0 | 0 | 0 | 64 | 0 | audio-only |
| 1 | 640 | 360 | 500 | 15 | |
| 10 | 960 | 540 | 700 | 24 | |
| 20 | 1280 | 720 | 1024 | 24 | |
| 22 | 720 | 1280 | 1024 | 30 | |
| 23 | 800 | 600 | 1024 | 30 | |
| 24 | 750 | 780 | 1024 | 30 | |
| 25 | 750 | 540 | 700 | 30 | |
| 26 | 720 | 1280 | 2048 | 30 | |
| 27 | 1280 | 720 | 2048 | 30 | |
| 28 | 1280 | 720 | 3096 | 30 | |
| 30 | 1920 | 1080 | 2048 | 30 | |
| 31 | 1080 | 1920 | 2048 | 30 | |
| 32 | 1024 | 768 | 1024 | 24 | |
| 33 | 1280 | 960 | 1024 | 24 | |
| 34 | 1024 | 768 | 2048 | 24 | |
| 35 | 1280 | 960 | 2048 | 24 | |
| 36 | 1280 | 720 | 1024 | 24 | |
| 37 | 1280 | 720 | 2048 | 24 | |
| 38 | 540 | 960 | 750 | 15 | |
| 39 | 540 | 960 | 1500 | 30 | |
| 40 | 1280 | 720 | 1200 | 15 | |
| 41 | 720 | 1280 | 1200 | 15 | |
| 42 | 720 | 1280 | 1500 | 15 | |
| 43 | 540 | 960 | 1200 | 15 | |
| 52 | 640 | 360 | 500 | 30 | |
| 53 | 360 | 640 | 500 | 15 | |
| 54 | 360 | 640 | 500 | 30 | |
| 60 | 1920 | 1080 | 4096 | 30 | |
| 61 | 1080 | 1920 | 4096 | 30 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response schema |
||
| RequestId |
string |
Request ID |
30D41049-D02D-1C21-86AE-B3E5FD805C27 |
| TemplateId |
string |
Template ID |
ac7N**** |
Examples
Success response
JSON format
{
"RequestId": "30D41049-D02D-1C21-86AE-B3E5FD805C27",
"TemplateId": "ac7N****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterError | %s. | |
| 400 | Function.Disable | %s. | Function status is invalid, please request in function enabled state. |
| 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.