
Benjamin KAHANE
- Updated
Before you can use the Import IMP action to import a package asset into Flex Media Platform, you must create three metadata definitions: asset map, PKL, and CPL. When you have created these definitions, you can then run an import action and it will pick up the details in these metadata definitions.
You can create Metadata Definitions using both the REST API and the UI.
You can upload the details of each metadata definition in the form of XML files to Flex Media Platform,
using the Metadata Designer.
In the Metadata Designer, click !
From the drop down, click
In the Upload a Metadata Schema window, drag the XML file into the selection area.
Click
Select the newly uploaded definition.
Click Enable and all the fields appear.
Alternatively you can use the REST API to create the required metadata definitions.
Run the following REST request: POST /api/metadataDefinitions/
Example body:
<pre class="pre codeblock hljs json">{
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"imf_am_st0429_9_2007"</span>,
<span class="hljs-attr">"description"</span>: <span class="hljs-string">"imf_am_st0429_9_2007"</span>,
<span class="hljs-attr">"visibilityIds"</span>: [<span class="hljs-number">4</span>],
<span class="hljs-attr">"accountId"</span>: <span class="hljs-number">4</span>
}</pre>
Add the metadata to the asset map metadata definition, using:
PUT:/api/metadataDefinitions/{MetadataDefinitionEntityId}/definition
See the [Appendix](../appendix) for CPL, ASSET MAP, PKL metadata definitions. (JSON)
Navigate to the definition in the metadata definition and enable it.
Run the following REST request: POST: /api/metadataDefinitions/
Example body:
<pre class="pre codeblock hljs json">{
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"imf_pkl_st2067_2_2016"</span>,
<span class="hljs-attr">"description"</span>: <span class="hljs-string">"imf_am_st0429_9_2007"</span>,
<span class="hljs-attr">"visibilityIds"</span>: [<span class="hljs-number">4</span>],
<span class="hljs-attr">"accountId"</span>: <span class="hljs-number">4</span>
}
</pre>
Add the metadata to the PKL metadata definition, using:
PUT:/api/metadataDefinitions/{MetadataDefinitionEntityId}/definition
See the [Appendix](../appendix) for CPL, ASSET MAP, PKL metadata definitions. (JSON)
Navigate to the definition in the metadata definition and enable it.
Run the following REST request: POST:/api/metadataDefinitions/
Example body:
<pre class="pre codeblock hljs json"> {
<span class="hljs-attr">"name"</span>: <span class="hljs-string">"imf_cpl_st2067_3_2016"</span>,
<span class="hljs-attr">"description"</span>: <span class="hljs-string">"imf_am_st0429_9_2007"</span>,
<span class="hljs-attr">"visibilityIds"</span>: [<span class="hljs-number">4</span>],
<span class="hljs-attr">"accountId"</span>: <span class="hljs-number">4</span>
}
</pre>
Add the metadata to the CPL metadata definition, using:
PUT:/api/metadataDefinitions/{MetadataDefinitionEntityId}/definition
See the [Appendix](../appendix) section for CPL, ASSETMAP, and PKL metadata definitions (XML).
Navigate to the definition in the Metadata Definition and enable it.
You must create an IMP Import Action, and then configure it, so that it points to the VFS location where your package resides.
The Import action supports the following protocols:
You can update the contents of a package that has already been imported into Flex Media Platform. You can do this by importing new files on top of an existing package in Flex using the IMP Import action.
For example: you might have an existing package in Flex Media Platform, and you want add some new items to it, such a new audio track or a new CPL. This is done using the IMP Import action.
You can export the whole package from Flex Media Platform using the following protocols:
Notes:
- In 7.2.0 you can only export a complete package and not a partial one.
- Azure Blob Storage is currently not supported. You must create an IMP Export Action, and then configure it, so that it points to the VFS location where you would like your package to be exported to.
Comments
0 comments
Please sign in to leave a comment.