---
title: "ScoreHandler calculates a score for the audited manifest."
method: POST
path: "/audit/score"
tags: ["audit"]
---

# ScoreHandler calculates a score for the audited manifest.

`POST /audit/score`

This endpoint calculates a score for the provided manifest based on the number and severity of issues detected during the audit.

## Request body

- AuditPayload
  - `manifest` string — Manifest is the content to be audited.

## Response `200`

Score calculation result

- AuditScoreData
  - `issuesTotal` integer — IssuesTotal is the total count of all issues found during the audit. This count can be used to understand the overall number of problems that need to be addressed.
  - `score` number — Score represents the calculated score of the audited manifest based on the number and severity of issues. It provides a quantitative measure of the security posture of the resources in the manifest.
  - `severityStatistic` object — SeverityStatistic is a mapping of severity levels to their respective number of occurrences. It allows for a quick overview of the distribution of issues across different severity categories.
  - `severitySum` integer — SeveritySum is the sum of severity scores of all issues, which can be used to gauge the cumulative severity of all problems found.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Internal Server Error

## Changes

- **2023-12-11** `2a20fa0acab4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kusionstack/apis/karpor/changes/audit/score/post.md)

---

[API](https://skmtc.dev/kusionstack/apis/karpor.md) · [All operations](https://skmtc.dev/kusionstack/apis/karpor/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kusionstack/karpor/revisions/2a20fa0acab4/schema)
