Assets
Upload files to your organization's drive, organize them in directories and project folders, and fetch them for your jobs.
Assets are the files in your organization's drive: what you upload, and what the products save for you. Every asset has an id, a storage key and a url. A typical integration follows three steps.
Upload the file
Pick the way that fits the file:
| File | Use |
|---|---|
| Small files, up to 50 at once | Upload files (multipart/form-data) |
| One large file, up to 5 GB, in a single request | Get a direct upload URL, PUT the bytes, then Register a direct upload |
| Very large files, or uploads you want to resume | Start a multipart upload, get part URLs, PUT each part, then complete it |
| A file already online | Import a file from a link (up to 2 GB) |
Presigned URLs go straight to storage: send them without your API key.
Organize it
Files land at the root of your organization drive unless you choose a place. Create a directory, then move files into it, rename them or add a shortcut to show a file in a second place. To keep one client's files together with the jobs you run for them, use a project: it has its own folder in the drive.
Fetch it
List assets to browse and search, or List files in a directory to get every file under a directory, with its path and url, in one call. Products that work on assets take their id or key: for example, Video Dubbing's Upload from your assets.
Where an asset lives
Every asset has a parentType and a parent ID (fk_parentId). Send the same pair when you upload, list, create a directory or move.
parentType | Parent ID | Place |
|---|---|---|
ORGANIZATION | Your organization ID | The root of your organization drive. The default. |
FOLDER | A directory id | Inside that directory — including a project's folder (its driveFolderId) and anything inside it. |
PROJECT and TASK are no longer accepted for new files (400): a project's files live in its folder, Projects/<name>/, which is an ordinary directory. To list it, send projectId to List assets.
Directories and project folders
A directory holds files in the drive, like a folder on your computer. Each project has one at Projects/<name>/: it is renamed with the project and moved to the trash with it, so you can't move, rename or delete it from the drive. Everything inside it is yours to organize — upload, create sub-directories, move and delete as anywhere else.
In Acclaro, system directories at the drive root are managed by the platform. A product's own directory (such as video-translator) and everything in it have isLocked: true and cannot be moved or deleted. Projects itself is locked, but the contents of each project folder are not.
Shortcuts
A shortcut shows one asset in a second place without a copy: it shares the original's key and takes no space. Deleting the original keeps the file while a shortcut to it exists; the shortcut becomes the original.
Trash
Assets are deleted in the Universe app. Deleted assets stay in the trash for 30 days, then are deleted for good, with their stored files. Until then, restore them. Get storage usage counts the trash too.
Responses to check
Some of these endpoints answer 200 even when nothing happened. Check the body:
- Move assets returns
moved: 0and the reason inerror. - Rename an asset, Add a shortcut and the trash actions return plain text, such as
Rename successfulorAsset not found.
Permissions
Each endpoint page lists the permission it needs. The API key needs them on the role of the person who created it.
| Resource | Covers | Actions used |
|---|---|---|
asset | Files and directories in the drive, and the trash. | create, read, update, delete |
None of these endpoints charge credits.