assign_batches
imerit_ango.sdk.SDK.
assign_batches(project_id, asset_ids, batches)
Assign specific asset(s) to specific batches.
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_projects
function.
asset_ids: List[str]
List of asset IDs to assign to batches. Asset IDs can be obtained from the UI, or from get_assets.
Example:
['0000000aa0a00a0000aaaa0a', '0000000aa0a00a0000aaaa0b']
batches: List[str]
List of batches to which assets will be assigned.
You can choose to pass either a list of batch names or a list of batch IDs. Batch names and batch IDs can be obtained with get_batches.
Example:
['Batch-1', 'Batch-2']
or['0000000aa0a00a0000aaaa0a', '0000000aa0a00a0000aaaa0b']
Returns:
output: dict
Example
Outputs:
Where "assets" is the number of assets successfully assigned to the batch(es).
See also
Last updated