---
title: "Retrieves trend summary of infrastructure resources"
method: POST
path: "/v1/resource/dashboard/trend/summary"
tags: ["Resource"]
---

# Retrieves trend summary of infrastructure resources

`POST /v1/resource/dashboard/trend/summary`

Retrieves trend summary of infrastructure resources

## Request body

- InfraResourceTrendSummaryRequest
  - `start_date` string, date-time, required — Start date of the trend analysis period.
  - `end_date` string, date-time — End date of the trend analysis period.
  - `filters` InfraResourceTrendSummaryBaseFilters
    - `tenant_id` string, required — Tenant ID to filter the resources. This can be fetched from the List Tenants API call.
    - `query` QueryOperator
      - `__type` string, required — Concrete type used for polymorphic deserialization (discriminator)
  - `granularity` 'day' | 'month', required — Granularity for aggregating resource trend data
  - `group_by` 'category' | 'change_status', required — Grouping criteria for the trend data.

## Response `200`

Success

- InfraResourceTrendSummary[]
  - `date` string, date — Date of the trend data point.
  - `category` string — Resource category
  - `change_status` 'added' | 'unchanged' | 'modified' | 'deleted' — Change status of the infrastructure resource
  - `count` integer — Count of resources for the given date and category.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.dev/corestack/apis/corestack-external-api.md) · [All operations](https://skmtc.dev/corestack/apis/corestack-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corestack/corestack-external-api/revisions/bf2cdf20826d/schema)
