Create a Template
POST /jobs/templates/
Parameters
- access_token: OAuth 2.0 API access token.
- format : json or xml. This will override the Request Accept header.
- human : true or false. It makes response in structured form, useful only when calling API through curl or browser.
- show_null: true or false. If set to "true", the response will contain also keys that are not set to a value.
- expand_all: true or false. Recursively look up referenced objects (e.g.: preset id) and embed the respective json as a nested object directly into the response.
POST /jobs/templates/
curl -X POST -H "application/json" -d '{ \ "template": { \ "name": "My Test Template", \ "job_settings": { \ "input": {"start_time": 0}, \ "autograph": { "watermark_strength": "light" }, \ "user_data" : "My Personal Marker", \ "output_prefix": "{job_id}/", \ "outputs": [ \ { \ "output_name": "{input_name}", \ "thumbnails": [ { "thumbnail_names": "thumb_{resolution}", "thumbnail_preset": "thumbnails_small" } ], \ "logos": [ \ { \ "logo_image": "https://s3-us-east-1.amazonaws.com/my_logo_pngs/logo30.png", \ "logo_preset": "logo_30_bottom_right" \ } \ ], \ "settings": { "video": { "height": "100%", "width": "100%", "bitrate": "90%" } }, \ "preset": { id: "5e2834a2c35f386a1327c958" } \ } \ ], \ "pipeline": { id: "5eb43241e4b0463cfe034c1f" } \ } \ } \ }' https://api.xvid.com/v1/jobs/templates/?access_token=m9VmyJKTPGFqpkL_THjGE5rkXqfURDYqQ8MTBVidG3PtwkfABIdx6s_z9WlFl4_j&human=true&show_null=true"
name: Name of the new template
- description (optional): A string with a longer description about the purpose of the template
- job_settings: The actual job settings to be stored as a template. The schema matches that of the Jobs resource with the exception that the "input.input_name" and "unique_custom_key" keys are not valid and cannot be set for a template.
Overview
Content Tools