upload_files_cloud
Last updated
Last updated
imerit_ango.sdk.SDK.
Import files in cloud storage to Ango Hub. Check for more information.
project_id: string
The unique identifier for the project. You can find the project ID in or retrieve it using the function.
assets: List[string]
A list of asset dictionaries in the [{"data": <URL>, "externalId": "<external_id>"}] format.
Assets uploaded with this method can also contain attachments, batches, metadata, and contextData.
For Markdown assets, you may directly include the Markdown file as plain text in the data
field, like so:
storage_id: string, Optional, default None
batches: List[string], Optional, default None
Returns:
output: dict
Importing a file from a public bucket, and assigning it to a batch:
Importing a file from a private bucket, and assigning it to multiple batches:
If importing files from a private bucket , this parameter is necessary. This is the ID of the bucket's integration, obtainable from function.
You may add the files being uploaded to one or multiple batches, by passing a list of batch IDs. You may obtain a list of batch IDs available in your project using function, or create new ones using function.
, ,