File resource

Get isheet record id for a file

OVERVIEW

Collaborate site can be configured with a file metadata isheet. With a file metadata isheet a new record is created in the file metadata isheet when a file is uploaded to the files module of the site. There can only be one file metadata isheet in a site. 

On uploading the file to the files module the associated record in the file metadata isheet can be obtained by calling the following method. This method can also be called for any existing file in the site, to update the metadata records for the file. 

Call the isheetRecordID to obtain the isheet record which is to be updated. 

Request

GET files/${fileid}/isheetRecordID

Where fileid parameter is the ID of the file for which the metadata record ID is required. 

Response

The method returns the iSheet Record ID in the following format:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<sheet>
    <IsheetRecordID>{numeric record ID}</IsheetRecordID>
</sheet>

Please note that the isheetRecordID parameter is case sensitive 

In case of an invalid file ID an error object is returned 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
    <ref>136</ref>
    <summary>File not found</summary>
</error>

 

Comments


12 Comments

Last Updated: Nov 08,2024