Using and Creating Output Presets

Presets can be defined within the management UI. When you save a format, you can use the name of that format in subsequent API calls and the same format information will be applied.

Keep in mind that you'll still need to supply authentication, source, and destination information in each API request, the preset merely repeats the same previous choices on the parameters for encoding and translations.

775
<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid> <!-- required-->
    <userkey>[UserKey]</userkey> <!-- required-->
    <action>addMedia</action>
    <format> <!-- REQUIRED -->
        <output_preset>[output]</output_preset> <!-- REQUIRED -->
        <!-- Format fields -->
    </format>
</query>
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "action": "addMedia",
        "format": {
            "output_preset": "[output]"
        }
    }
}