Supported products
Supported products
Required Scopes
Required Scopes
filesAuthorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
File to be uploaded.
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.
Desired name for the uploaded file.
Character set of the uploaded file.
JSON string representing FileUploadOptions.
Response
successful operation
File
File access. Can be PUBLIC_INDEXABLE, PUBLIC_NOT_INDEXABLE, PRIVATE.
PUBLIC_INDEXABLE, PUBLIC_NOT_INDEXABLE, HIDDEN_INDEXABLE, HIDDEN_NOT_INDEXABLE, HIDDEN_PRIVATE, PRIVATE, HIDDEN_SENSITIVE, SENSITIVE Creation time of the file object.
If the file is deleted.
File ID.
Timestamp of the latest update to the file.
Extension of the file. ex: .jpg, .png, .gif, .pdf, etc.
ID of the folder the file is in.
The MD5 hash of the file.
Encoding of the file.
Type of the file. Can be IMG, DOCUMENT, AUDIO, MOVIE, or OTHER.
Previously "archied". Indicates if the file should be used when creating new content like web pages.
URL of the given file. This URL can change depending on the domain settings of the account. Will use the select file hosting domain.
Deletion time of the file object.
Path of the file in the file manager.
Size of the file in bytes.
Name of the file.
For image and video files, the width of the content.
Default hosting URL of the file. This will use one of HubSpot's provided URLs to serve the file.
For image and video files, the height of the content.