For the complete documentation index, see llms.txt. This page is also available as Markdown.

upload_files_with_asset_builder

imerit_ango.sdk.SDK.

upload_files_with_asset_builder(project_id, template_id, input_file_path, priority)

Upload assets to your project using the asset builder template. It processes the CSV file by iterating over each column, generating corresponding assets using the specified template.

Parameters

  • project_id: string

  • template_id: string

    • Id of the asset builder template which is created on the AngoHub

    • Example: '0000000aa0a00a0000aaaa0a'

  • input_file_path: string

    • The file path of the CSV file

    • Example:

      • 'data_folder/csv_file.csv'

  • priority: int, Optional, default 0

    • The new priority value to assign to the uploaded assets.

    • Note: The priority value must be between -1000 and 1000. Higher values indicate higher priority.

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

    • Including a status field indicating whether the request was successful and a data field containing the response payload with updated resources produced by the operation.

The maximum asset upload limit is set to 100,000. Please ensure your uploads do not exceed this limit.

How to verify in Ango Hub?

After successfully executing the upload_files_with_asset_builder function, you can validate the changes directly in Ango Hub.

Navigate to: Projects → [Your Project] → Asset

  • Ensure that all assets have been successfully imported and are visible in the project.

Changes made via the SDK are reflected in Ango Hub in near real-time. If updates are not immediately visible, please refresh the page.

Example

The asset builder template must be correctly configured to match the structure of the CSV file for successful asset generation.

Last updated