Getting Metadata of a File

You can use the getFile call to retrieve the metadata of a document. You use the download call to download the file.

Sample URL

https://hostname:port/context/rest/v2/documents/getFile/{id}

Method

GET

Parameters

Parameter Description
id The ID of the document.

This parameter is required if the path parameter is not present.

path The fully qualified File Share path name.

This parameter is required if the id parameter is not present; otherwise, it is ignored.

Response

The metadata of the document is returned.

Example:

{"createdOn":1367350658057,"fileSize":0,"latestVersion":0,"parentId":"d74be617-b63e-491b-a429-f0d06db5b1e1","id":"1c3c3183-cc71-479b-9801-ea053aa3ac46","createdBy":"UserId1","docType":"F","lastDownloadedOn":1367350658178,"shareId":"d74be617-b63e-491b-a429-f0d06db5b1e1","comments":"Updated File 21 under Hi Lvl Folder 2"}