🧪 Bac à sable API

Testez les endpoints de l'API Rediafile Cloud v2. Les réponses sont simulées — aucune credential réelle requise.

Éditer un fichier

Renommer ou reclasser un fichier.

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

Paramètres

Jeton.
Id du fichier.
Nouveau nom.

Réponse

Sélectionnez un endpoint et cliquez sur « Envoyer » pour voir une réponse simulée.
<?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;