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
PUBLIC_INDEXABLE: File is publicly accessible by anyone who has the URL. Search engines can index the file. PUBLIC_NOT_INDEXABLE: File is publicly accessible by anyone who has the URL. Search engines can't index the file. PRIVATE: File is NOT publicly accessible. Requires a signed URL to see content. Search engines can't index the file.
HIDDEN_INDEXABLE, HIDDEN_NOT_INDEXABLE, HIDDEN_PRIVATE, HIDDEN_SENSITIVE, PRIVATE, PUBLIC_INDEXABLE, PUBLIC_NOT_INDEXABLE, SENSITIVE Marks whether the folder is deleted or not.
Timestamp of folder creation.
File ID.
Timestamp of the latest update to the folder.
Timestamp of folder deletion.
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 requested file.
The MD5 hash of the file.
For image and video files. The height of the file.
Mark whether the file should be used in new content or not.
New name. If specified the folder's name and fullPath will change. All children of the folder will be updated accordingly.
New parent folderId. If changed, the folder and all it's children will be moved into the specified folder. parentFolderId and parentFolderPath cannot be specified at the same time.
Path of the folder in the file manager.
Size in bytes of the requested file.
CONTENT, CONVERSATIONS, FORMS, UI_EXTENSIONS, UNKNOWN Type of the file. Can be IMG, DOCUMENT, AUDIO, MOVIE, or OTHER.
URL to download the new file from.
For image and video files. The width of the file.