Finish local file upload
upload_file_completeFinalize a local file upload started with upload_file_start. Call this only AFTER the upload command (or, for an image or zip, the curl PUT) has finished successfully. Pass exactly one of: asset_id (a video: verifies every part landed in storage and starts video processing), image_url (an image) or upload_id (a live animation zip: checks it has a page to play, else says what to fix). An image or a zip creates the asset here - at the team's top level, in folder_id, or as a new version of version_of - titled title. Safe to retry: a repeat returns the same asset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Image or zip (a video's go with upload_file_start; a zip is already its version's file). Files to attach to the version, sent with the upload: by convention the working files that made it as ONE source.zip (the project folder without node_modules, build output or renders; over 30 MB, split into source-1.zip, source-2.zip, ...). Max 30 MB each, 20 per version, names used once. Each comes back with its upload command: run it before the main upload. | |
| notes | No | Image or zip (a video's go with upload_file_start). The version's notes, in Markdown: what changed and why (link the feedback it answers), and how to continue (the tools, the command that renders it). Saved with the version, so it shows them from the start; each file's line is put above them for you. Up to 20,000 characters of text. | |
| title | No | Image or zip only: title for the new asset (defaults to the file name for an image) | |
| team_id | No | Team to act in: the team.id an earlier result named. Omit for the team selected in the Flask app (which the user can switch at any time). | |
| asset_id | No | The asset_id (version id) upload_file_start returned for a video | |
| folder_id | No | Image or zip only: folder to create it in (omit for the team's top level) | |
| image_url | No | The image_url upload_file_start returned for an image | |
| upload_id | No | The upload_id upload_file_start returned for a live animation zip | |
| version_of | No | Image or zip only: add it as a new version of this asset (any of its ids). For a video it is ignored: the version is attached at upload_file_start. |