---
title: "Query analytical unit metrics"
method: POST
path: "/api/analytics/query/analytical-unit/{analyticalUnitId}"
tags: ["analytics"]
---

# Query analytical unit metrics

`POST /api/analytics/query/analytical-unit/{analyticalUnitId}`

## Request

- Base URL: `https://codescene.io` (the document declares no server; this is the origin it was published from)
- URL: `https://codescene.io/api/analytics/query/analytical-unit/{analyticalUnitId}`
- Auth: none declared

## Path parameters

- `analyticalUnitId` integer, required

## Request body

- object
  - `startDate` string, date-time
  - `endDate` string, date-time

## Response `200`

- object
  - `type` 'analytical-unit', required
  - `analyticalUnitType` string, required
  - `analyticalUnitId` integer, required
  - `name` string, required
  - `metrics` object, required

## Other responses

- `400`
- `401`
- `403`
- `404`

---

[API](https://skmtc.dev/codescene/apis/codescene-api.md) · [All operations](https://skmtc.dev/codescene/apis/codescene-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codescene/apis/codescene-api/revisions/e443e0b6bc89?raw)
