---
title: "TaskStatsResponseModel"
url: "https://developers.zinnia.com/apis/case-management-1-0-0/versions/0091226b-6452-4e75-93ce-4bbfe022aad5/schemas/TaskStatsResponseModel"
---

> Full API specification: https://developers.zinnia.com/apis/case-management-1-0-0/versions/0091226b-6452-4e75-93ce-4bbfe022aad5.md

# TaskStatsResponseModel

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Case Management API
  version: 1.0.0
servers:
  - url: https://dev.api.zinnia.io/
    description: Dev Environment
  - url: https://qa.api.zinnia.io/
    description: QA Environment
  - url: https://uat.api.zinnia.io/
    description: UAT Environment
  - url: https://api.zinnia.io/
    description: PROD Environment
components:
  schemas:
    TaskStatsResponseModel:
      type: object
      properties:
        count:
          type: integer
          description: Total number of tasks
        stats:
          type: array
          items:
            type: object
            properties:
              attribute:
                type: string
                description: The attribute by which tasks are grouped
              counts:
                type: array
                items:
                  type: object
                  properties:
                    label:
                      type: string
                      description: The label of the grouped attribute
                    value:
                      type: integer
                      description: The count of tasks for the label
```
