Server API - Update Preset Info

Last Updated: Dec 16, 2014 03:22PM PST
Updates an existing preset with new meta-data. Both the actual preset XML and the data record are updated with new information. If changing the preset name and there is already a preset with that name, the service will return a 409 Conflict status code.

Base URI /api/presets/info/{name}/
Protocol HTTP
HTTP Method PUT
Response Formats XML, JSON
Help URL /api/presets/help/operations/UpdatePresetFromInfo

Common Parameters
Name Required Description
Name Yes The name or unique Id of the preset to update. Prefer using the Preset Unique ID


Request Data Fields
Name DataType Required Description
PresetInfo Element Yes Container for preset data
Created DateTime Private Private - cannot be set by user
Description String No The new description for the preset, if any
Extension String No Private - cannot be set by user. This will be supplied by the preset data.
Id Guid Private Private - cannot be set by the user
Modified DateTime Private Private - cannot be set by the user
Name String No The new name for the preset, if any. If the new name clashes with an existing preset, the service will return a 409 Conflict
Published Boolean No Indicates if the preset should be published or not published
Uri String Private Private-- cannot be set by the user
Workflow String No New workflow string for the preset, if any


Response Data Fields
Name DataType Required Description
PresetInfo Element Yes Contains preset information
Created DateTime Yes Date the preset was created (GMT)
Description String No The description pulled from the preset data, if any
Extension String No The default file extension the preset will produce (ie: mov, flv, mp4). Note that a preset may produce a different file type in some cases.
Id GUID Yes Unique ID for the new preset
Modified DateTime Yes The date and time the preset was last modified
Name String Yes The preset name extracted from the preset XML data
Published Boolean Yes Indicates if the preset is published (publicly available) or not published (not publicly available)
Uri String Yes The URL for the preset. Squeeze Server and other clients can request the preset data with this URL
Workflow String Yes The workflow string for the preset. Extracted from the preset data if present


Example cURL call:
curl -H "Accept: application/xml" -H "x-Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type:
application/xml" -X PUT --data "

2012-05-31T11:20:00
SampleDescription
2012-05-31T11:20:00
SampleName" http:///api/presets/info/Preset_GUID/
squeezesupport@sorensonmedia.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete