Add images to the workspace
upload_imagesBring the user's own images (PNG, JPEG or WebP, up to 5 MB each) into the workspace, optionally into a collection (made when it does not exist). Without files: a link to the workspace's Images page (the collection's page with collection) for the user to open and drop the images into; after they say they are done, find them with find_images and that collection. When you have the files yourself (a shell, files on disk): pass files with each one's SHA-256 hash, content type and size, PUT each file's bytes to its upload_url with that Content-Type header, then call again with done (each hash and file name) to record them; the reply gives each image's image key for create_layers and its asset_id for batch rows. Never send image data as base64. Files that did not arrive come back under failed and can be sent again; a file already stored is recognised by its hash and not stored twice. Use it for the user's own files; to use images already in the workspace use find_images, and images already on the web can be placed straight from their https URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| done | No | Files you uploaded, to record them. | |
| files | No | Files you will upload yourself. | |
| collection | No | Collection to put the images in, by name. |