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

assign_batches

imerit_ango.sdk.SDK.

assign_batches(project_id, asset_ids, batches)

Assign a list of assets to one or more existing batches within your project.

Parameters

  • project_id: string

  • asset_ids: List[str]

    • List of asset IDs that will be assigned to the specified batches. Asset IDs can be obtained from the UI, or from get_assets function.

    • Example: ['0000000aa0a00a0000aaaa0a', '0000000aa0a00a0000aaaa0b']

  • batches: List[str]

    • List of batch IDs to assign to the specified assets. Batch IDs can be obtained using the get_batches function.

    • Example:

      • ['0000000aa0a00a0000aaaa0a', '0000000aa0a00a0000aaaa0b']

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.

How to verify in Ango Hub?

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

Navigate to: Projects → [Your Project] → Assets

  • Filter assets using their Asset ID or Batch column.

  • Confirm that the selected assets are assigned to the correct batches.

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

Sample Output

Last updated