ClickHelp User Manual
[API] Get File
Returns information on a single file.
GET storage/{file-path}?format={file-encode-format}
Authentication
This request requires basic authentication.
Request Parameters
Path params
file-path |
string |
File path relative to the root, i.e., everything after ...resources/Storage/. |
---|
Query params
format | string |
[optional] File encoding. Currently, only base64 is supported. If not specified, does not return content. |
---|
Samples
Request sample
Bash (Unix Shell) |
curl --location -g --request GET 'https://{portal-url}/api/v1/storage/project-deep-space-exploration/info.png?format=base64' |
Response body sample
JSON |
{ |
Response fields
fileName | File name and extension. |
---|---|
fileFullName | Full file name, including the base Storage/ folder. |
content | Base64-encoded file content. |
modifiedBy | Login of the user the file was last modified by. |
modifiedOn | An ISO 8601 timestamp of the file modification date. GMT timezone. |
size | File size in bytes. |
isFolder | Whether the entity is a file or a folder. |