V2 > Upload

Create new Media

Creates new Media with either $post = ['folder' => $folderIdentifier, 'filename' => $fileName, 'url' => $videoUrl]; // uploading file from url $post = ['folder' => $folderIdentifier, 'name' => $fileName, 'file' => new \CURLFile($filePath, '', $fileName)]; // uploading file

post/1/vod/channel/{channel}/upload

Path parameters

channelinteger required

The Channel unique identifier

Response

Created

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success"
}

Changes

No recorded changes to this endpoint across all 2 revisions of this API.