Updates one or many medias/folders
v1
put
/1/vod/channel/{channel}/browse/update
Updates one or many medias/folders.
Path parameters
channel
requiredstring
Examples:example
Body Parameters
application/jsontargetsarrayofobject
Response Body
application/json
resultstring
Examples:success
dataarrayofobject
BrowsableVirtualFile
Example request
<?php
use GuzzleHttp\Client;
$client = new Client();
$headers = [
'Authorization' => 'Bearer YOUR-TOKEN-HERE',
'Content-Type' => 'application/json'
];
$body = '{}';
$request = new Request('PUT', 'https://api.infomaniak.com/1/vod/channel/{channel}/browse/update', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
Example response
application/json
{"result":"success","data":[{"name":{"type":"video or folder name"},"description":"maria","validated":true,"published":true,"streams":"[audio, video]","duration":"276.62","size":2300000,"created_at":"2021-09-15T14:23:41+00:00","updated_at":"2021-09-15T14:23:41+00:00","deleted_at":"2021-09-15T14:23:41+00:00","discarded_at":"2021-09-15T14:23:41+00:00","folders_count":42,"files_count":42,"path":"/foldera/folderb/file","preview":{"audio":{"url":"https://infomaniak.com","mimetype":"maria","size":42,"size_human_readable":"maria"},"audio_raw":{"url":"https://infomaniak.com","mimetype":"maria","size":42,"size_human_readable":"maria"},"video":{"url":"https://infomaniak.com","mimetype":"maria","size":42,"size_human_readable":"maria"}},"sample":{"audio":{"url":"https://infomaniak.com","mimetype":"maria","size":42,"size_human_readable":"maria"},"video":{"url":"https://infomaniak.com","mimetype":"maria","size":42,"size_human_readable":"maria"}},"thumbnail":{"url":"https://infomaniak.com","mimetype":"maria","size":42,"size_human_readable":"maria"},"state":42,"progress":50,"playlists_attached_count":2,"tags":[],"type":"maria","id":"1jhvl2uqa5v8a"}]}