Create a mediafile.

22Aug2011

Create a mediafile.

Request URL

/mediafile/create [POST]

Request Authorization

This call needs EGA authentication.

Request Parameters

Parameter (Type)DescriptionRequiredDefault valueMax. length
asset_id (ALPHA_NUM)The ID of the parent asset.Required-
user_id (ALPHA_NUM)The owner ID to match.Required-
filename (FILENAME)Filename of the mediafile, can not be combined with URI.Optional-
group_id (ALPHA_NUM)The group ID.Optional-
is_downloadable (BOOL)Mediafile can be downloaded.OptionalFALSE-
is_original_file (BOOL)Mark mediafile as original.OptionalTRUE-
mediafile_id (ALPHA_NUM)The mediafile ID.Optional-
mediafile_id_source (ALPHA_NUM)The ID of the mediafile of the original.Optional-
mediamosa_version (MEDIAMOSA_VERSION)Provide the version to get the REST call returned in the format of the specified MediaMosa version. Keep empty or skip to retrieve in current (latest) version. Provide '2' to retrieve the REST call in 2.x format. Or be more specific by providing up to 3 digits; '2.3.0'. This setting will override any setting used by client application or the default setting in MediaMosa.Optional-
sannas_mount_point (STRING)The location path of the file.Optional-
tag (STRING)User specified tag.Optional-
uri (URI)The stream URI.Optional-

Example Request

mediafile/create

Example Response

<items>
  <item id="1">
    <mediafile_id>ERTpgSptYbqvUaYUJGrryyML</mediafile_id>
  </item>
</items>