UpdateTemplate
Modifies a cloud editing template, including the template title and configuration.
Operation description
To use common templates, refer to Quick start for common templates.
To use advanced templates, refer to Create and use advanced templates.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:UpdateTemplate |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
No |
The ID of the cloud editing template. You can obtain the ID from the Intelligent Media Services console or the response parameters of the CreateTemplate operation. |
23923ec3318f4c359e42e1e5b296**** |
| Name |
string |
No |
The name of the cloud editing template. |
Cloud Clip Template 1 |
| Config |
string |
No |
The template configuration. For more information, see Common template configuration details. |
{ "VideoTracks": [ { "VideoTrackClips": [ { "Sys_Type" : "ArrayItems", "Sys_ArrayObject" : "$VideoArray", "Sys_Template" : { "MediaId" : "$MediaId" } } ] } ] } |
| CoverUrl |
string |
No |
The URL of the template cover. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg |
| PreviewMedia |
string |
No |
The ID of the preview video media asset. |
1ae320b48fb04483915d4f2cd8ac**** |
| Status |
string |
No |
The template status. Valid values:
Note
After an advanced template is created, it requires analysis time and its status is Processing. The template is unavailable during this period and can only be used when its status changes to Available. The analysis time depends on the template file size and typically ranges from 10 seconds to 5 minutes. |
Available |
| Source |
string |
No |
The update source. Default value: OpenAPI. Valid values:
|
OpenAPI |
| RelatedMediaids |
string |
No |
The media assets associated with the template, used by the common 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.