const params = new URLSearchParams();
const data = new FormData();
data.append('access_token', 'demo_token_abc123');
data.append('file_id', '10245');
data.append('name', 'renamed_report.pdf');
const resp = await fetch('https://rediafile.com/cloud/api/v2/file/edit', {
method: 'POST',
body: data
});
const json = await resp.json();
console.log(json);