Switch language

Sandbox

Explore every endpoint with simulated responses — no credentials required.

POST /file/edit

Edit File

Update file metadata (name, password, expiry).

File ID

New file name

Password protect the file

Reset form

Click "Send request" to see a simulated response.

Code Examples

<?php
$ch = curl_init('https://rediafile.com/cloud/api/v2/file/edit');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $token]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
    'file_id' => 'file_84729',
    'name' => 'renamed.pdf',
    'password' => 'mypass',
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);