Creates a snapshot or animated image template.
Operation description
After you create a template, you can pass the ID of the snapshot or animated image template to the SubmitSnapshotJob or SubmitDynamicImageJob operation to initiate a snapshot or animated image job.
You can receive video snapshot completion and video animated image completion callback messages by using HTTP callbacks (HTTPS-compatible) or MNS callbacks. For more information, see Callback methods.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:AddVodTemplate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the template.
|
test |
| TemplateType |
string |
Yes |
The templatetype. Valid values:
|
Snapshot |
| TemplateConfig |
string |
Yes |
The configuration data of the template in JSON format. For more information about the data structure, see Snapshot template configuration or Animated image template configuration. |
{"SnapshotConfig":{"Count":10,"SpecifiedOffsetTime":0,"Interval":1,"FrameType":"normal"},"SnapshotType":"NormalSnapshot"} |
| AppId |
string |
No |
The ID of the application. Default value: app-1000000. For more information, see Multi-application. |
app-**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| VodTemplateId |
string |
The ID of the snapshot or animated image template. You can use this ID as a request parameter in the SubmitSnapshotJob or SubmitDynamicImageJob operation to initiate snapshot or animated image processing. |
f5b228fe6930e*****0d6bf55bd87789 |
| RequestId |
string |
The ID of the request. |
25818875-5F78-4A*****F6-D7393642CA58 |
Examples
Success response
JSON format
{
"VodTemplateId": "f5b228fe6930e*****0d6bf55bd87789",
"RequestId": "25818875-5F78-4A*****F6-D7393642CA58"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.