Modifies an online editing template. You can modify the template title and template configurations.
Operation description
-
For more information about how to use a regular template, see Create and use a regular template.
-
For more information about how to use an advanced template, see Create and use advanced templates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:UpdateTemplate |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
No |
The ID of the online editing template. You can obtain the template ID in the Intelligent Media Services (IMS) console or the response parameters of the AddTemplate operation. |
23923ec3318f4c359e42e1e5b296**** |
| Name |
string |
No |
The name of the online editing template. |
Cloud Editing Template 1 |
| Config |
string |
No |
The template configurations. For more information, see Config object of a regular template. |
{ "VideoTracks": [ { "VideoTrackClips": [ { "Sys_Type" : "ArrayItems", "Sys_ArrayObject" : "$VideoArray", "Sys_Template" : { "MediaId" : "$MediaId" } } ] } ] } |
| CoverUrl |
string |
No |
The URL of the template thumbnail. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg |
| PreviewMedia |
string |
No |
The ID of the preview video. |
1ae320b48fb04483915d4f2cd8ac**** |
| Status |
string |
No |
The template state. Valid values:
Note
After an advanced template is created, it enters the Processing state. In this case, the template is unavailable. The template can be used only when it is in the Available state. The time required for template processing varies based on the size of the template file. Generally, it ranges from 10 seconds to 5 minutes. |
Available |
| Source |
string |
No |
The source from which the template is modified. Default value: OpenAPI. Valid values:
|
OpenAPI |
| RelatedMediaids |
string |
No |
The IDs of the materials associated with the template for use by the regular template editor. |
{"video":["f64c6acc840247edb6b12f575c66****","9675dcf040ba4525bb037c29d156****"],"audio":["62a54019d9114009a5ae9bcfd70b****"],"image":["743ffbeb7e004c758cdc1fb34c04****"]} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
F8D475A5-F2EC-5755-ABD8-22D5561C**** |
Examples
Success response
JSON format
{
"RequestId": "F8D475A5-F2EC-5755-ABD8-22D5561C****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.