Update properties of file by ID.
Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
ID of file to update
Object for updating files.
NONE: Do not run any duplicate validation. REJECT: Reject the upload if a duplicate is found. RETURN_EXISTING: If a duplicate file is found, do not upload a new file and return the found duplicate instead.
HIDDEN_INDEXABLE, HIDDEN_NOT_INDEXABLE, HIDDEN_PRIVATE, HIDDEN_SENSITIVE, PRIVATE, PUBLIC_INDEXABLE, PUBLIC_NOT_INDEXABLE, SENSITIVE Mark whether the file should be used in new content or not.
New name for the file.
FolderId where the file should be moved to. folderId and folderPath parameters cannot be set at the same time.
Folder path where the file should be moved to. folderId and folderPath parameters cannot be set at the same time.
successful operation
File
File access. Can be PUBLIC_INDEXABLE, PUBLIC_NOT_INDEXABLE, PRIVATE.
HIDDEN_INDEXABLE, HIDDEN_NOT_INDEXABLE, HIDDEN_PRIVATE, HIDDEN_SENSITIVE, PRIVATE, PUBLIC_INDEXABLE, PUBLIC_NOT_INDEXABLE, SENSITIVE If the file is deleted.
Creation time of the file object.
File ID.
Timestamp of the latest update to the file.
Deletion time of the file object.
Default hosting URL of the file. This will use one of HubSpot's provided URLs to serve the file.
Encoding of the file.
Extension of the file. ex: .jpg, .png, .gif, .pdf, etc.
The MD5 hash of the file.
For image and video files, the height of the content.
Previously "archied". Indicates if the file should be used when creating new content like web pages.
Name of the file.
ID of the folder the file is in.
Path of the file in the file manager.
Size of the file in bytes.
Type of the file. Can be IMG, DOCUMENT, AUDIO, MOVIE, or OTHER.
URL of the given file. This URL can change depending on the domain settings of the account. Will use the select file hosting domain.
For image and video files, the width of the content.