Skip to main content

filestatus

Description:

Gives complete meta information of a file.

Request

https://api.moinet.io/moibit/v1/filestatus

Request type - POST

Headers#

Header KeyHeader ValueOptional
nonce<developer_nonce> No
signature<signature gotten after signing developer_nonce by developer> No
developerKeypublic id of the developerNo
networkIDID of the network the file exist No
appIDID of the app the file the file exist Yes
enduser_nonce<enduser nonce> where enduser has moi_idNo if enduser has moi_id
enduser_signature<signature gotten after signing enduser_nonce by enduser> where enduser has moi_idNo if enduser has moi_id
enduserIDId of the enduser if end-user doesn't have moi_id Yes

Parameters#

Param KeyParam TypeDescriptionOptional
pathStringFile name or path No

Response Array#

FieldDescription
versionversion of the file
hashContent identifier of the file
filesizeSize of the file uploaded
replication Number of replicas the file have
encryptionType Encryption type of file
lastUpdatedDate of the file when uploaded
directory Parent directory of the file being uploaded
path Absolute path of the file in system
isDir Is a directory or a file
recoveryTime Time duration till when one can recover this file once deleted
nodeAddressID of the node that processed this file

Sample Response#

{
"meta": {
"code": 200,
"requestId": "11c7303b-bf91-418d-abb2-8f99a68d30ba",
"message": "got status successfully"
},
"data": {
"active": true,
"enable": true,
"version": 5,
"hash": "QmWywfSszvVwGsiut8T69aMrRUkQUYwcgU3MFoWWV9qRaP",
"filesize": 51085,
"replication": 2,
"filetype": "",
"encryptionType": 3,
"encryptionKey": "",
"lastUpdated": "2021-05-21T05:29:58.881113868-05:00",
"directory": "/",
"isDir": false,
"path": "/file4.jpg",
"recoveryTime": 0,
"permanentDelete": false,
"nodeAddress": "0x6d543F7B5Cf7843A8f64861c2aEd3Ad5B05E44DF",
"appDeleted": false,
"userDeleted": false
}
}