Create a mediafile.

17May2010

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.Optional-
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-
sannas_mount_point (STRING)The location path of the file.Optional-
uri (URI)The stream URI.Optional-

Example Request

mediafile/create

Example Response

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