Upload a single file with content specified in request body.
Supported products
Required Scopes
The access token received from the authorization server in the OAuth 2.0 flow.
Character set of the uploaded file.
File to be uploaded.
Desired name for the uploaded file.
Either 'folderId' or 'folderPath' is required. folderId is the ID of the folder the file will be uploaded to.
Either 'folderPath' or 'folderId' is required. This field represents the destination folder path for the uploaded file. If a path doesn't exist, the system will try to create one.
JSON string representing FileUploadOptions.
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.