/accounts/templates/update¶
Update conversion template.
Parameters¶
- template_key : string
Key of the conversion template.
- name (optional) : string
Name of the template.
- video_quality (optional) : int
Video quality. Should be in the range of 1 to 9, where 1 is the lowest quality and 9 is the highest.
- audio_quality (optional) : int
Audio quality. Should be in the range of 1 to 9, where 1 is the lowest quality and 9 is the highest.
- width (optional) : int
Template width. Give -1 to use the width of the input video.
- upscale (optional) : string
Specifies if the template should be applied to videos that are smaller than the template’s width:
- True
Apply to the videos that are smaller than the template’s width.
- False
Do not apply to the videos that are smaller than the template’s width.
Warning
upscale parameter can be only updated if template is not a required template.
- min_scale_width (optional) : int
Specified the minimum width of the original video that this template will be applied to; if this is given as the empty string, the value will be unset and the actual template width will be used as minimum instead.
Warning
min_scale_width parameter can be only updated if template is not a required template.
- default (optional) : string
Specifies if the template should be applied by default to the new video or audio uploads:
- video
Apply by default only to new video uploads.
- audio
Apply by default only to new audio uploads.
- all
Apply by default to all new uploads.
- none
Do not apply by default to new uploads.
Warning
default parameter can be only updated if template is not a required template.
- watermark_key (optional) : string
Key of the watermark that should be used with this template. Template will not use any watermark image if the watermark_key value is empty.
- watermark_position (optional) : string
Watermark position:
- top-left
Position watermark in the top left corner of the video.
- top-right
Position watermark in the top right corner of the video.
- bottom-right
Position watermark in the bottom right corner of the video.
- bottom-left
Position watermark in the bottom left corner of the video.
- center
Position watermark in the center of the video.
Default is bottom-right.
- watermark_margin (optional) : unsigned int
Watermark margin from the both sides of the video corner set by the watermark_position parameter. Default is 10. Not applicable when watermark_position parameter set to center.
Example response¶
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>ok</status>
</response>
Response parameters¶
- /response/status : string
Call execution status. Set to ok if call executed successfully.