Creates a template. Intelligent Cloud Editor supports the video clip feature based on standard templates and advanced templates. You can invoke AddTemplate to create a template.
Operation description
Usage notes
To use standard templates, see Quick start for standard templates.
To use advanced templates, see Create and use advanced templates.
Limits
After an advanced template is created, it takes some time to be parsed. During parsing, the template status is Processing and the template is not active. The template becomes active only when its status changes to Available. The parsing time depends on the template file size and typically ranges from 10 seconds to 5 minutes.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:AddTemplate |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The custom template name. |
Template name |
| Type |
string |
No |
The templatetype. Valid values:
Valid values:
|
Timeline |
| Config |
string |
No |
|
See the Timeline template Config documentation |
| CoverUrl |
string |
No |
The template cover URL. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg |
| PreviewMedia |
string |
No |
The media asset ID of the template preview video. |
****01bf24bf41c78b2754cb3187**** |
| Status |
string |
No |
The template status. Valid values:
Valid values:
|
Available |
| Source |
string |
No |
The template creation source. Valid values:
Valid values:
|
OpenAPI |
| RelatedMediaids |
string |
No |
The media assets associated with the template, used by the standard template editor. |
{"video":["1805a0c6ca544fb395a06ca683619655"]} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
****2876-6263-4B75-8F2C-CD0F7FCF**** |
| Template |
object |
The template information. |
|
| TemplateId |
string |
The template ID. |
****01bf24bf41c78b2754cb3187**** |
| Name |
string |
The template name. |
Template name |
| Type |
string |
The templatetype. Valid values:
|
Timeline |
| Config |
string |
See the Timeline template Config documentation. |
See the Config documentation |
| CoverUrl |
string |
The template cover URL. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg |
| PreviewMedia |
string |
The media asset ID of the preview video. |
****01bf24bf41c78b2754cb3187**** |
| Status |
string |
The template status. Valid values:
|
Available |
| CreateSource |
string |
The template creation source. Valid values:
|
OpenAPI |
| ModifiedSource |
string |
The template modification source. Valid values:
|
OpenAPI |
Examples
Success response
JSON format
{
"RequestId": "****2876-6263-4B75-8F2C-CD0F7FCF****",
"Template": {
"TemplateId": "****01bf24bf41c78b2754cb3187****",
"Name": "Template name",
"Type": "Timeline",
"Config": "参见Config文档",
"CoverUrl": "http://example-bucket.oss-cn-shanghai.aliyuncs.com/cover.jpg",
"PreviewMedia": "****01bf24bf41c78b2754cb3187****",
"Status": "Available",
"CreateSource": "OpenAPI",
"ModifiedSource": "OpenAPI"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.