Channel Admin Controller

Restore File from Backup

Path: /api/channels/{channelRef}/folders/{folderName}/files/{filename}/restore

Method: POST

Example Http Request

POST /api/channels/localhost/folders/public/files/test.vrm/restore?backupTimestamp=20230101_120000 HTTP/1.1
Content-Type: application/json
X-WAL: 0x1371699df678b0d92025bc20fdb91fdef8ce9444
X-SIG: 0x1234567890
X-MES: Message to sign
Host: localhost:8080

Example Http Response

HTTP/1.1 200 OK
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 39

https://example.com/vrm/public/test.vrm

Example Curl Request

$ curl 'http://localhost:8080/api/channels/localhost/folders/public/files/test.vrm/restore?backupTimestamp=20230101_120000' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'X-WAL: 0x1371699df678b0d92025bc20fdb91fdef8ce9444' \
    -H 'X-SIG: 0x1234567890' \
    -H 'X-MES: Message to sign'

Channel Admin Controller