Extend the storage duration of a file by adding more Walrus epochs. This renews the file’s availability on the network beyond its current expiration.
Path Parameters
The unique identifier of the file to extend.
Request Body
Number of additional Walrus epochs to add. Each epoch is approximately 2 weeks. Range: 1–100.
Response
The new expiration timestamp (ISO 8601) after the extension.
Total number of epochs the file is now stored for (from original upload).
WAL tokens charged for the extension.
SUI tokens charged (gas fee).
Example
curl -X POST https://api.tusky.io/v2/files/file_abc123/extend \
-H "Api-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"epochs": 5}'
Response
{
"id": "file_abc123",
"expiresAt": "2026-04-17T12:00:00.000Z",
"epochsAdded": 5,
"totalEpochs": 10,
"cost": {
"wal": "0.025",
"sui": "0.0025"
}
}
If the file was published in a quilt, extending the file extends the entire quilt — all files within it get the same extended storage duration.
Extension costs are deducted from your prepaid wallet balance. If your balance is insufficient, the request returns 402 Payment Required.