object property. Every file object belongs to a File Channel. This API resource describes the metadata of the file object.
To upload or download the contents of a file (as opposed to link or folder), you need to make two API calls. Details are specified in the Create a File and Retrieve a File pages.
Properties
idstring
The unique identifier for this item.
createdAt string
The date this item was created in RFC3339 format.
updatedAt string
The date this item was updated in RFC3339 format.
object string
The object type of this resource. The file resource can represent either a file, link, or folder.
createdBy string
The ID of the user that created this item.
channelId string
The ID of the channel this file is assigned to.
downloadUrl string
A URL that can be used to download file objects. Field does not appear for folder and link objects. Expires after 15 minutes.
path string
The relative location from the channel root for this object. This is a / delimited string where each separated value represents a folder name, until the last value which represents the name of this file resource.
clientPermissions
string
When the file object is type folder, this will be set to the permissions type for the folder.
linkUrl
string
When the file object is type link, this will be set to the URL the link points to. Otherwise this will be an empty string.
status string
When the file object is type file, this can be either pending or completed. This represents the current state of a file being created via the API. If the status is pending, the file has been created via the API but not yet uploaded. Once the file is uploaded, the status will be completed. This field is only present for file objects.
size number
Describes the size of the file, in bytes. This field is only present for file objects when performing Retrieve a File
lastModifiedBy object
Contains the data of who modified the file last. The object contains:
- id
stringThe ID of the user who modified the file. - object
string (optional)The object type of the user (one ofclient,internalUser).
🚧 Deprecation note We are deprecating the nestedfieldsobject and have promoted all of the properties previously contained within thefieldsobject to top-level properties. For backwards compatibility, you may still see the nestedfieldsobject in responses and examples.
Example Folder Object
Example File Object
Example Link Object