create_asset_builder_template
imerit_ango.sdk.SDK.
create_asset_builder_template(project_id, template)
Create templates to be used while uploading data via the asset builder. Learn more about asset builder templates from the Asset Builder docs.
Parameters
project_id: string
The unique identifier for the project. You can find the project ID in the user interface or retrieve it using the
list_projectsfunction.
template: AssetBuilderTemplate
An object defining the structure of the template, excluding the
_idfield. Includes:name: string
Unique name for this template.
template: string
Template HTML that will be filled in while uploading via asset builder.
external_id_column: string
The column name from the input tabular data to be used as the asset's externalId. In each row, the value in the cell corresponding to this column will be used as the externalId for that row.
data_config: Dict[str, DataConfigItem]
Dictionary mapping column names to their configuration. Each
DataConfigItemcontains:type: string - The data type for this column. Must be one of:
"text", "link", "image", "audio", "video", "iframe", "pdf"
storage: string, Optional, default None - Storage configuration for this column. Only necessary when the type is one of: video, image, audio, or pdf.
include_in_export: string, Optional, default False - Whether to include this column in exports
description: string, Optional, default ""
A description of what the template does or what it is.
batch_column: string, Optional, default ""
Batch column name from the input tabular data to be used as the batch name for that asset. In each row, the value in the cell corresponding to this column will be used as the batch name for that row.
pre_label_config: PreLabelConfig
Dictionary containing pre-labeling configuration. Each item contains:
cla: PreLabelCla - Classification configuration with fields:
schemaId: string - Schema identifier
title: string - Display title
multiple: bool - Whether multiple selections are allowed
value: string - Column that will be used as the source of pre-label data
Returns
output: AssetBuilderTemplate with
_idfield
Examples
Basic Template (minimal required fields)
Comprehensive Template (all optional fields)
Template with Batch Processing
Usage with upload_files_with_asset_builder
Last updated