get_assets
imerit_ango.sdk.SDK.
get_assets(project_id, page, limit, filters)
Retrieve asset details from 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.
page: integer, default 1
The page number for paginated results.
limit: integer, default 10
The maximum number of assets to return per page.
filters: dict, default {}
A dictionary of filter options. If omitted, all assets will be returned.
Here is a list of possible filters you may pass in the filters dict:
{
"_id": ["asset_id_1", "asset_id_2"], # Asset ID filter
"externalId": ["external_id_1", "external_id_2"], # External ID filter
"isPreLabeled": bool, # Prelabel filter
"batches": ["batch_id_1", "batch_id_2"], # Batch filter (only the assets belonging to all batches will be returned) This is an "AND" operation.
"createdAt": {"gt": "ISO_TIME_STR"}, # gt: Greater Than (after), ISO_TIME_STR example: "2002-12-09T00:00:00.000Z"
"createdAt": {"lt": "ISO_TIME_STR"} # lt: Less Than (before), ISO_TIME_STR example: "2002-12-09T00:00:00.000Z"
}Returns:
output: dict
A dictionary containing the result of the operation.
Example
Retrieve the first ten assets from the project:
Retrieve all assets from the project:
Retrieve a single asset via asset ID:
Last updated