Replace existing file data with new file data. Can be used to change image content without having to upload a new file and update all references.
Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
ID of the desired file.
Character set of given file data.
File data that will replace existing file in the file manager.
JSON string representing FileReplaceOptions. Includes options to set the access and expiresAt properties, which will automatically update when the file is replaced.
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.