get_asset_builder_templates

imerit_ango.sdk.SDK.

get_asset_builder_templates(project_id)

Returns all of the asset builder templates in the provided project.

This operation can also be accomplished using the get_project function and then by accessing the project's assetBuilderTemplates field. This method is provided for convenience.

Parameters

  • project_id: string

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

Example

import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv("variables.env")
api_key = os.getenv("API_KEY")
project_id = os.getenv("PROJECT_ID")

ango_sdk = SDK(api_key)

templates = ango_sdk.get_asset_builder_templates(project_id)
Sample Output
[
  {
    "name": "Sample Template",
    "description": "Sample Description",
    "template": "Sample Content",
    "preLabelConfig": {},
    "dataConfig": {
      "Batch": {
        "type": "text",
        "storage": "Public",
        "includeInExport": false
      },
      "External ID": {
        "type": "text",
        "storage": "Public",
        "includeInExport": false
      },
    },
    "selectedExternalId": "External ID",
    "_id": "68b69f9068d5b2b62c6e615d",
    "createdAt": "2020-00-00T00:00:00.000Z"
  }
]

Last updated