table-layoutcreate_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

  • template: AssetBuilderTemplate

    An object defining the structure of the template, excluding the _id field. 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.arrow-up-right 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 DataConfigItem contains:

      • 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 namearrow-up-right 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 _id field

Examples

Basic Template (minimal required fields)

chevron-rightSample CSV Filehashtag

Comprehensive Template (all optional fields)

chevron-rightSample CSV Filehashtag

Template with Batch Processing

chevron-rightSample CSV Filehashtag

chevron-rightSample CSV Filehashtag

Last updated