---
title: "PolicyAgeBucket"
url: "https://developers.zinnia.com/apis/policy-service-0-1-0/versions/8306e031-b41c-452a-a7ed-d73d65602086/schemas/PolicyAgeBucket"
---

> Full API specification: https://developers.zinnia.com/apis/policy-service-0-1-0/versions/8306e031-b41c-452a-a7ed-d73d65602086.md

# PolicyAgeBucket

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Policy Service
  version: 0.0.21
servers:
  - url: https://qa.api.zinnia.io
components:
  schemas:
    PolicyStatusCount:
      type: object
      properties:
        label:
          type: string
          description: Policy status label
          example: ACTIVE
        value:
          type: number
          description: Count for this status
          example: 20
    PolicyAgeBucket:
      type: object
      properties:
        label:
          type: string
          description: Bucket label
          example: "1"
        fromDays:
          type: number
          description: Inclusive lower bound in days
          example: 0
        toDays:
          type: number
          description: Exclusive upper bound in days (null for open-ended)
          example: 2
          nullable: true
        count:
          type: number
          description: Total count of policies in this age bucket
          example: 25
        counts:
          description: Policy count breakdown by status
          default: []
          type: array
          items:
            $ref: "#/components/schemas/PolicyStatusCount"
      required:
        - label
        - fromDays
        - toDays
        - count
        - counts
```
