Create a mediafile.
/mediafile/create [POST]
This call needs EGA authentication.
| Parameter (Type) | Description | Required | Default value | Max. 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. | Optional | TRUE | - |
| 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 | - |
mediafile/create
<items>
<item id="1">
<mediafile_id>ERTpgSptYbqvUaYUJGrryyML</mediafile_id>
</item>
</items>