upload_files
Last updated
Last updated
imerit_ango.sdk.SDK.
Upload files to Ango Hub. A list of local file paths should be given as an input parameter.
Optionally, a custom externalID for the files may be given from within the file_paths
parameter. (See examples below)
project_id: string
The unique identifier for the project. You can find the project ID in or retrieve it using the function.
file_paths: List[string]
A list containing absolute paths to files and, optionally, their contextData.
Example:
storage_id: string, Optional, default None
This parameter has no function anymore and will be deprecated in the next version of the SDK.
batches: List[string], Optional, default None
Example: ['0000000aa0a00a0000aaaa0a', '0000000aa0a00a0000aaaa0b']
Returns:
output: dict
Importing two local files:
Importing a file with a custom external ID:
You may assign the files you are uploading to one or more batches that exist in your project by providing their IDs here. You may create new batches with and you can get a list of batches with .
,