Create asset(s)
Upload one or more assets into the workspace’s library, so they can later be referenced by an evaluation.
This endpoint accepts only multipart/form-data, not JSON. Binary assets (image, video, or a document to
extract text from) go in files; plain-text assets go in assets as a JSON-encoded list of
{name, content}. tags is a JSON-encoded list applied to every asset in the request. The content type of
each file is inferred from its extension, so an unsupported extension is a 400.
Images are downscaled on upload and stored in GCS. Text and video assets additionally trigger an asynchronous
processing flow (transcription and text extraction), so their content may be populated shortly after this
call returns.
Sending neither files nor assets is not an error: the response is 200 with an empty list.
Required permission: write:asset_evaluation.
Authorizations
Path Parameters
A UUID string identifying the organization.
A UUID string identifying the workspace.
Body
Base for all the serializers in the assets app
This field is used only for plain text assets, for other asset types please use the files attribute
1 - 10 elementsAssets files to be evaluated: video, image or text from a document.
Optional list of tags for the asset
255Response
No assets were supplied; an empty list is returned.
255255image- imagetext- textvideo- video
image, text, video 255255