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 a project.
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.
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 pass a list of batch IDs. Batch IDs can be obtained with get_batches function.
Example:
['0000000aa0a00a0000aaaa0a', '0000000aa0a00a0000aaaa0b']
Returns:
output: dict
A dictionary containing the result of the operation.
Including a
statusfield indicating whether the request was successful and adatafield containing the response payload with updated resources produced by the operation.
Batches must already exist in the project. If needed, create them using the create_batch function.
The assets to assign must already exist in the project. To upload assets, use upload_files or upload_files_cloud or any other appropriate upload function.
Example
See also
Last updated