const body = `{
"runnerToken": "string",
"jobToken": "string",
"progress": 0,
"payload": {
"type": "add-chunk",
"masterPlaylistFile": "<binary>",
"resolutionPlaylistFile": "<binary>",
"resolutionPlaylistFilename": "string",
"videoChunkFile": "<binary>",
"videoChunkFilename": "string"
}
}`;
const response = await fetch('https://peertube2.cpy.re/api/v1/runners/jobs/9c9de5e8-0a1e-484a-b099-e80766180a6d/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body,
});
const data = await response.text();