🧪 API Sandbox

Test Rediafile Cloud API v2 endpoints live. Responses are simulated — no real credentials required.

Edit File Metadata

Rename, reclassify, or relocate a file programmatically.

POST https://rediafile.com/cloud/api/v2/file/edit

Parameters

Auth token.
File id.
New file name.

Response

Select an endpoint and click "Send Request" to see a simulated response.
<?php
$ch = curl_init('https://rediafile.com/cloud/api/v2/file/edit');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'access_token' => 'demo_token_abc123',
    'file_id' => '10245',
    'name' => 'renamed_report.pdf',
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$resp = curl_exec($ch);
curl_close($ch);
echo $resp;