---
title: "Patch Compliance Report"
method: POST
path: "/operations/trend_analysis/patch_compliance"
tags: ["Reports"]
---

# Patch Compliance Report

`POST /operations/trend_analysis/patch_compliance`

Fetch the patch compliance report based on cloud account usage

## Request body

- PatchComplianceReportReq
  - `span` 'PreviousMonth' | 'PreviousTwoMonths' | 'CurrentMonth' | 'PreviousThreeMonths' | 'PreviousSixMonths' — span name
  - `cloud_account_id` string — Specify the Azure Cloud Account ID. This can be fetched from List CloudAccounts API call.
  - `tenant_id` string — Specify the tenant ID. This is a unique ID and can be retrieved using the List Tenants API.

## Response `200`

Created

- PatchComplianceReportRes
  - `status` string — status response
  - `message` string — message response
  - `data` object — compliance data

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `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)
