Items

Get Item counts by classes

Changed on

Returns items counts (selected by provided filters) grouped by annotation classes.

get/api/v2/teams/{team_slug}/items/class_counts

Request

  • Base URL
    https://darwin.v7labs.com
  • URL
    https://darwin.v7labs.com/api/v2/teams/{team_slug}/items/class_counts
  • Auth
    • HTTP bearer
    • or API key in header Authorization

Path parameters

team_slugstring required

Team's sluggified name

Query parameters

CommonDatasetId[] required

List of dataset IDs

OR
'all' required

All dataset IDs.

OR
string required

[ DEPRECATED ] Comma seperated list of dataset IDs

[
  123
]
has_commentsboolean

Controls whether to include only items with/without comments

select_allboolean

For batch operation this filter has to be set to true if no other optional filter is provided.

Example:true
item_path_prefixstring

Item's path prefix to match. This filter only matches on full path segments, it's not possible to match on e.g. '/some_path' with '/some' filter.

Example:/some/prefix
not_item_path_prefixstring

Item's path prefix to match. This filter only matches on full path segments, it's not possible to match on e.g. '/some_path' with '/some' filter.

Example:/some/prefix
DatasetsV2FiltersItemPath[]

List of Item's path

OR
string

[ DEPRECATED ] Comma separated list of Item's path

[
  "/some/path"
]
DatasetsV2FiltersItemPath[]

List of Item's path

OR
string

[ DEPRECATED ] Comma separated list of Item's path

[
  "/some/path"
]
DatasetsV2FiltersItemId[]

List of Item's UUID

OR
string

[ DEPRECATED ] Comma separated list of Item's UUID

[
  "e23ff3f3-8f77-4e78-9e81-fdb25abfb781"
]
DatasetsV2FiltersItemId[]

List of Item's UUID

OR
string

[ DEPRECATED ] Comma separated list of Item's UUID

[
  "e23ff3f3-8f77-4e78-9e81-fdb25abfb781"
]
DatasetsV2FiltersItemName[]

List of Item's name

OR
string

[ DEPRECATED ] Comma separated list of Item's name

[
  "my item"
]
DatasetsV2FiltersItemName[]

List of Item's name

OR
string

[ DEPRECATED ] Comma separated list of Item's name

[
  "my item"
]
item_name_prefixstring

Prefix of item's name

Example:prefix_
not_item_name_prefixstring

Prefix of item's name

Example:prefix_
item_name_containsstring

Partial item's name

Example:item
not_item_name_containsstring

Partial item's name

Example:item
DatasetsV2FiltersWorkflowStageId[]

List of Item's current workflow stage ID.

OR
string

[ DEPRECATED ] Comma separated list of Item's current workflow stage ID.

[
  "e23ff3f3-8f77-4e78-9e81-fdb25abfb781"
]
DatasetsV2FiltersWorkflowStageId[]

List of Item's current workflow stage ID.

OR
string

[ DEPRECATED ] Comma separated list of Item's current workflow stage ID.

[
  "e23ff3f3-8f77-4e78-9e81-fdb25abfb781"
]
DatasetsV2FiltersFileType[]

List of Type of files within the item

OR
string

[ DEPRECATED ] Comma separated list of Type of files within the item

[
  "image"
]
DatasetsV2FiltersFileType[]

List of Type of files within the item

OR
string

[ DEPRECATED ] Comma separated list of Type of files within the item

[
  "image"
]
DatasetsV2CommonGeneralStatus[]

List of General status of the Upload/Item. It considers processing status as well as workflow status and Item being archived/non-archived. Can be used instead of 'processing_status' and 'workflow_status' for simplicity. Item will be marked as 'complete' only if both workflow and processing is done.

OR
string

[ DEPRECATED ] Comma separated list of General status of the Upload/Item. It considers processing status as well as workflow status and Item being archived/non-archived. Can be used instead of 'processing_status' and 'workflow_status' for simplicity. Item will be marked as 'complete' only if both workflow and processing is done.

Example:,
DatasetsV2CommonGeneralStatus[]

List of General status of the Upload/Item. It considers processing status as well as workflow status and Item being archived/non-archived. Can be used instead of 'processing_status' and 'workflow_status' for simplicity. Item will be marked as 'complete' only if both workflow and processing is done.

OR
string

[ DEPRECATED ] Comma separated list of General status of the Upload/Item. It considers processing status as well as workflow status and Item being archived/non-archived. Can be used instead of 'processing_status' and 'workflow_status' for simplicity. Item will be marked as 'complete' only if both workflow and processing is done.

Example:,
DatasetsV2FiltersAnnotationClassId[]

List of Item's class ID

OR
string

[ DEPRECATED ] Comma separated list of Item's class ID

[
  123
]
DatasetsV2FiltersAnnotationClassId[]

List of Item's class ID

OR
string

[ DEPRECATED ] Comma separated list of Item's class ID

[
  123
]
WorkflowsV2ItemAssigneeId[]

List of Item's assignee ID

OR
string

[ DEPRECATED ] Comma separated list of Item's assignee ID

[
  123
]
WorkflowsV2ItemAssigneeId[]

List of Item's assignee ID

OR
string

[ DEPRECATED ] Comma separated list of Item's assignee ID

[
  123
]
WorkflowsV2ItemAssigneeId[]

List of Item's assignee ID

OR
string

[ DEPRECATED ] Comma separated list of Item's assignee ID

[
  123
]
WorkflowsV2ItemAssigneeId[]

List of Item's assignee ID

OR
string

[ DEPRECATED ] Comma separated list of Item's assignee ID

[
  123
]

Response

DatasetsV2.ItemManagement.ClassCountsResponse

Example response

{
  "simple_counts": [
    {
      "dataset_id": 123
    }
  ]
}

Changes

    • warning

      added the new DUPLICATE_REJECT_REASON enum value to the / response property for the response status

    • warning

      added the new DUPLICATE_REJECT_REASON enum value to the / response property for the response status

    • warning

      added the new DUPLICATE_REJECT_REASON enum value to the // response property for the response status

    • warning

      added the new EXTERNAL_STORAGE_ACCESS_FAILED enum value to the / response property for the response status

    • warning

      added the new EXTERNAL_STORAGE_ACCESS_FAILED enum value to the / response property for the response status

    • warning

      added the new EXTERNAL_STORAGE_ACCESS_FAILED enum value to the // response property for the response status

    • warning

      added the new INVALID_REJECT_REASON enum value to the / response property for the response status

    • warning

      added the new INVALID_REJECT_REASON enum value to the / response property for the response status

    • warning

      added the new INVALID_REJECT_REASON enum value to the // response property for the response status

    • warning

      added the new INVALID_REJECT_REASONS enum value to the / response property for the response status

    • warning

      added the new INVALID_REJECT_REASONS enum value to the / response property for the response status

    • warning

      added the new INVALID_REJECT_REASONS enum value to the // response property for the response status

    • warning

      added the new REJECT_REASON_REQUIRED enum value to the / response property for the response status

    • warning

      added the new REJECT_REASON_REQUIRED enum value to the / response property for the response status

    • warning

      added the new REJECT_REASON_REQUIRED enum value to the // response property for the response status

    • warning

      added the new REPORT_TOO_LARGE enum value to the / response property for the response status

    • warning

      added the new REPORT_TOO_LARGE enum value to the / response property for the response status

    • warning

      added the new REPORT_TOO_LARGE enum value to the // response property for the response status

    • warning

      added the new TOO_MANY_ACTIVE_REPORT_JOBS enum value to the / response property for the response status

    • warning

      added the new TOO_MANY_ACTIVE_REPORT_JOBS enum value to the / response property for the response status

    • warning

      added the new TOO_MANY_ACTIVE_REPORT_JOBS enum value to the // response property for the response status

    • warning

      added the new TOO_MANY_PENDING_AI_REVIEW_BLUEPRINTS enum value to the / response property for the response status

    • warning

      added the new TOO_MANY_PENDING_AI_REVIEW_BLUEPRINTS enum value to the / response property for the response status

    • warning

      added the new TOO_MANY_PENDING_AI_REVIEW_BLUEPRINTS enum value to the // response property for the response status

    • warning

      added the new TOO_MANY_PENDING_EXPORTS enum value to the / response property for the response status

    • warning

      added the new TOO_MANY_PENDING_EXPORTS enum value to the / response property for the response status

    • warning

      added the new TOO_MANY_PENDING_EXPORTS enum value to the // response property for the response status

    • warning

      added the new TOO_MANY_REJECT_REASONS enum value to the / response property for the response status

    • warning

      added the new TOO_MANY_REJECT_REASONS enum value to the / response property for the response status

    • warning

      added the new TOO_MANY_REJECT_REASONS enum value to the // response property for the response status